Im trying to use a script I found on the net for a login/password page Im getting a Parse error: syntax error, unexpected T_STRING in /home/somewhere/righthere_html/user/add.php on line 41
The line 41 is VALUES ('".$POST['username']."', '".$POST['pass']."')";
can someone tell me what the t_string is?
// here we encrypt the password and add slashes if needed
$_POST['pass'] = md5($_POST['pass']);
if (!get_magic_quotes_gpc()) {
$_POST['pass'] = addslashes($_POST['pass']);
$_POST['username'] = addslashes($_POST['username']);
}
// now we insert it into the database $insert = "INSERT INTO users (username, password)
VALUES ('".$_POST['username']."', '".$_POST['pass']."')";
$add_member = mysql_query($insert);
?>
<!-- Now we let them know if their registration was successful -->