I know that my answer is probably written all over the web, but I have yet to find an answer. I have looked, and read sample scripts and went to other forums and searched, and even searched on this forum. The closet thing I found was the example user login system that pyro gave which used the make pass and such. My question / problem is that I cannot add data to my database table… I want users to be able to register and here is my form… I made it bare as possible until I can get it to work…
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form method=”POST” action=”add.php”>
First Name:<input type=”text” name=”first”>
Last Name:<input type=”text” name=”last”>
Username:<input type=”text” name=”user”>
Password:<input type=”text” name=”pass”>
Email:<input type=”text” name=”email”>
<input type=”submit”>
</form>
</body>
</html>
And here is the “add.php” page…
<?
//DB Variables
$Host = “localhost”;
$User = “********“;
$Pwd = “
$DBName = “jdm71488_web”;
$Link = mysql_connect($Host,$User,$Pwd);
$Query = “INSERT into members values (‘$_POST[first]’,’$_POST[user]’,’$
$Result = mysql_db_query($DBName, $Query, $Link);
echo”$Queryn”;
mysql_close ($Link);
?>
I forgot where I got this from. I copied it from somewhere, then filled in my info from there… After submitting the data, it redirects to the add.php page and displays what it is supposed to insert, for example (INSERT into members VALUES (aslfjsd, lasjfljaf, pwueruwe, aowurlk aslkj, alsidf)) but when I got to my table in phpmyadmin, no rows are there… whats wrong??? please help…
JDM