I am having a problem and get this message every time I run the html page that comes to this php: (middle of message deleted)
Parse error: parse error . . . . php on line 25
There are 24 lines in the coding, and I have noticed that the "parse error" always notes one number higher than the actural line with the error.
Can anyone tell me what is wrong here. I would really appreciate the help. (Note: the email address in the code is a dummy, not my real one.)
Thanks,
Ron
Code:
<?
$mailto = 'debigmac@notreal.net' ;
$subject = "DEALER LOG IN TEST php" ;
$dealerpassword = $_POST['dealerpassword'] ;
$dealerpg = "http://www.carterandcarterdesigns.com/dealer_area_temp.html" ;
$errorurl = "http://www.carterandcarterdesigns.com/dealer_login_error.html" ;
$messageproper =
"\n\n---------------- Information ------------------------\n\n" .
"Password Entered: $dealerpassword\n" ;
mail($mailto, $subject, $messageproper);
exit ;
if ($dealerpassword != "123aAbBz"){
header( "Location: $errorurl" );
} else {
{
mail( "debigmac@netzero.net", "TEST for Dealer Password",
"From: $name\nEmail: $email\nMessage: $message\n" );
header( "Location: $dealerpg" );
}
?>