Ive looked through other posts with the same error but i get this error for every form i do where by a variable is the user input. Im having to create a 2 page process registration form, can anyone see were ive gone wrong thanks: < PHP:
// Connection to server
$db_host = "localhost";
$db_username = "root";
$db_pass = "password";
$db_name = "members";
@mysql_connect ("$db_host","$db_username","$db_pass") or die ("Could not connect to mysql");
@mysql_select_db("$db_name") or die ("No Database");
//Variables
$Username = $_POST['Username'];
$password = md5 ($_POST['password']);
$insert = 'INSERT into Members(Username, password,) VALUES ("'.$Username.'", "' .$password.'")';
mysql_query($insert);
?>
And the form:
<body>
<form method= "post" action="reg.php">
<table width="200" border="1">
<tr>
<td>Username</td>
<td><input type="text" name="Username" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name"password" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name"submit" value="Submit" /></td>
</tr>
</table>
I was told to use a isset function which i do so which did say the variable did exist.