TO BE HONEST I HAVE NO IDEA THIS IS REALLY HARD NOW I DO NOT KNOW WHERE I AM AT. SOMEONE GAVE ME THE CODE LAST NIGHT AND I JUST CANT GET IT TO WORK AS I HAVE NEVER USED PHP BEFORE AND I KNOW THIS IS GOING TO TAKE SOME TIME TO FIGURE OUT.
USING THE CODE BELOW I AM GETTING THE ERROR MESSAGE AT THE BOTTOM OF THIS POST.
<?
error_reporting == E_ALL & ~E_NOTICE
$to='corey@decision.net.au';
$formmessage="";
while(list($key,$val)=each($FTTP_POST_VARS)){
}
$header.="From: Decision Website <mail@decision.net.au>\n";
#if there's an email element, use it for reply-to
if ($email)
$header.=="Reply-To: $email\n";
mail($to,"Sign up for news",$formmessage,$header);
header("Location: contactus.htm");
?>
WITH THE CODE ABOVE I AM NOW GETTING THIS ERROR
Parse error: parse error, unexpected T_VARIABLE in d:\webspace\decision\html\formmail (decision) test.php on line 5