submit form help
Posted: Tue Jun 07, 2005 5:22 pm
i am getting an error on my code and i dont know why.
here is my code
it says the parse error is on line 14 which is
matt
here is my code
Code: Select all
<?PHP
require('dblink.php');
//mysql query
$query = 'INSERT INTO member (username("'.$_POST[username].'"), password("'.$_POST[password].'"), email1("'.$_POST[email1].'"), firstname("'.$_POST[firstname].'"), lastname("'.$_POST[lastname].'"), sex("'.$_POST[sex].'"), dob("'.$_POST[dob].'"), city("'.$_POST[city].'"), country("'.$_POST[country].'"))';
mysql_query($query)
or die(mysql_error());
$db_query = mysql_query($query);
$to = $_POST['email1'];//the email address the user submitted
$subject = 'You Registered!';
$message = 'You have just registered to play on The Streets. To log in go to the main page and use your username and password to sign in.'//the body of the email you are sending
break;
Username: $_POST['username']
break;
Password: $_POST['password'];
mail($to, $subject, $message);//mail sent
?>thanks,$to = $_POST['email1'];//the email address the user submitted
matt