Hi everyone,
I have a really simple script for forgotten passwords but I just can't figure out this parse error. I've been trying for 2 days, I kid you not....I've tried different quote marks and replacing $POST['email'] with $email but nothing seems to work...any help you could give me, thank you in advance....
I have a form on forgot_password.php with text box name of 'email' which is set to post to forgot_message.php. Here is the php from forgot_message.php:
<?php require_once('Connections/gpeConn.php');
// on form processing page
$query=mysql_query("SELECT email, pword FROM member WHERE email='".$_POST['email']."'")ordie(mysql_error());
if(mysql_num_rows($query)==0){
echo"Email not found";
}else{
*// email them their password
$row=mysql_fetch_array($query);
$to=$_POST['email'];
$headers="From: admin@yourdomain.com";
$subject="Your password";
$msg="Your password is ".$row['pword'];
mail($to,$subject,$msg,*$headers);
echo*"your password has been sent";
}*
?>