dezkit Posted May 23, 2008 Share Posted May 23, 2008 <?php $FullName = $_REQUEST["FullName"]; $Age = $_REQUEST["Age"]; $Phone = $_REQUEST["Phone"]; $Email = $_REQUEST["Email"]; $AIM = $_REQUEST["AIM"]; $Myspace = $_REQUEST["Myspace"]; $IP = $_SERVER["REMOTE_ADDR"]; $headers = "Content-type: text/html; charset=iso-8859-1"; $to = "[email protected]"; $subject = "Employment Application"; $body = " Full Name: $FullName<br> Age: $Age<br> Phone: $Phone<br> Email: $Email<br> AIM: $AIM<br> Myspace: $Myspace<br> IP Address: $IP<br> "; if($FullName == ""){ echo "An error has occurred, please go back." } else { if (mail($to, $subject, $body, $headers)) { echo "<p><h2>Your application has been sent.</h2> <br>You be will automatically redirected to the home page in a couple of seconds.</HEAD></p>"; } else { echo "<p><h2>Your application has not been sent.</h2> <br>You will be automatically redirected to the employment page in a couple of seconds.</HEAD></p>"; } } ?> <meta http-equiv="REFRESH" content="4;url=http://www.xxx.com/site/"> why doesnt this work, i get a blank page. Quote Link to comment https://forums.phpfreaks.com/topic/107001-solved-php-email/ Share on other sites More sharing options...
BlueSkyIS Posted May 23, 2008 Share Posted May 23, 2008 what doesn't work? error message(s)? Quote Link to comment https://forums.phpfreaks.com/topic/107001-solved-php-email/#findComment-548464 Share on other sites More sharing options...
dezkit Posted May 23, 2008 Author Share Posted May 23, 2008 blank pagez Quote Link to comment https://forums.phpfreaks.com/topic/107001-solved-php-email/#findComment-548469 Share on other sites More sharing options...
BlueSkyIS Posted May 23, 2008 Share Posted May 23, 2008 i get: Parse error: syntax error, unexpected '}', expecting ',' or ';' in /Users/Sites/site1/test.php on line 24 do you have error_reporting() turned off? // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); Quote Link to comment https://forums.phpfreaks.com/topic/107001-solved-php-email/#findComment-548474 Share on other sites More sharing options...
dezkit Posted May 23, 2008 Author Share Posted May 23, 2008 yeah i have it off, and i dont no how to turn it on, tell me how do i fix my code please LD Quote Link to comment https://forums.phpfreaks.com/topic/107001-solved-php-email/#findComment-548485 Share on other sites More sharing options...
dezkit Posted May 23, 2008 Author Share Posted May 23, 2008 solved... Quote Link to comment https://forums.phpfreaks.com/topic/107001-solved-php-email/#findComment-548486 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.