<?
require('dblink.php');
//mysql query
$query = ' INSERT INTO table_name (username, passw, email) VALUES ("'.$_POST[username].'", "'.$_POST[password].'", "'.$_POST[email].'");
$db_query = mysql_query($query)
$to = $_POST['email'];//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
mail($to, $subject, $message);//mail sent
?>
<?
require('dblink.php');
//mysql query
$query = 'INSERT INTO member (Username, Password, Email) VALUES ("'.$_POST[username].'", "'.$_POST[password].'", "'.$_POST[email].'")';
$db_query = mysql_query($query);
$to = $_POST['email'];//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
mail($to, $subject, $message);//mail sent
?>