Ninjakreborn Posted May 18, 2006 Share Posted May 18, 2006 [b]SOLVED-I fixed the problem I was missing the closing symbol at the end of message, thanks for all the help[/b]It is coming up with [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Parse error: parse error, unexpected T_IF in /home/freelan4/public_html/cgi-bin/form-processors/ideasandsubmissionsprocessor.php on line 22[/quote]Below is the php processor code[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>ideasandsubmissionsprocessor.php</title></head><body><?php$firstname = $_POST['firstname'];$emailaddress = $_POST['emailaddress'];$verifyemail = $_POST['verifyemail'];$description = $_POST['description'];$to = "businessman332211@hotmail.com";$subject = "ideas and submissions";$message = "First Name: $firstnameEmail Address: $emailaddressVerify Email: $verifyemailDescription: $description"if (mail($to, $subject, $message)){print("Thank you for submitting your email has been successfully sent");print("Return to the homepage at <a href="http://www.freelancebusinessman.com">Freelance Businessman</a>");}else{print("I am sorry but there was some sort of error and the email could not be sent");print("I am not totally sure of the cause of this error.");print("Please return to <a href="http://www.freelancebusinessman.com">Freelance Businessman</a>");print("If you try again and recieve this error message a second time, then please email me at the original email address and notify me of this error, so it can be checked into. Thank you for visiting Freelance Businessman.");}?></body></html>[/code]Now below here is the page with the form[code]<form name="ideasandsubmissionsform" action="../cgi-bin/form-processors/ideasandsubmissionsprocessor.php" method="post"><fieldset class="formstyle"><legend>Ideas and Submissions</legend><br /><label for="firstname" accesskey="f">*First Name:</label><br /><input tabindex="1" name="firstname" id="firstname" type="text" maxlength="30" /><br /><label for="emailaddress" accesskey="e">*Email Address:</label><br /><input tabindex="2" name="emailaddress" id="emailaddress" type="text" maxlength="80" /><br /><label for="verifyemail" accesskey="v">*Verify Email:</label><br /><input tabindex="3" name="verifyemail" id="verifyemail" type="text" maxlegth="80" /><br /><label for="description" accesskey="m">*Description:</label><br /><textarea tabindex="4" name="description" id="description" rows="6" cols="30"></textarea><br /><input tabindex="5" name="submit" id="submit" type="submit" value="submit" /><input tabindex="6" name="reset" id="reset" type="reset" value="reset" /></fieldset></form>[/code]Any ideas, when I first started on it, it gave me other errors, and I hunted down the problems in the script that I messed up on, but now everything looks to be in place, any ideas.[b] Quote Link to comment https://forums.phpfreaks.com/topic/9920-email-parse-error/ Share on other sites More sharing options...
AndyB Posted May 18, 2006 Share Posted May 18, 2006 [code]print("Return to the homepage at <a href="http://www.freelancebusinessman.com">Freelance Businessman</a>");[/code]You need to change that line, and the similar line later so that the quotes at the href link do are not interpreted as ending the print statement. This will work:[code]print("Return to the homepage at <a href='http://www.freelancebusinessman.com'>Freelance Businessman</a>");[/code] Quote Link to comment https://forums.phpfreaks.com/topic/9920-email-parse-error/#findComment-36874 Share on other sites More sharing options...
Ninjakreborn Posted May 18, 2006 Author Share Posted May 18, 2006 I changed that, and that made sense, I should have caught that at first, but for some reason it's still giving me the exact same error message. I am still playing with it but have had no luck, I am confused because I never had this kind of problem before, except when I tried to do checkboxes and radio buttons and there are none on this form. So I don't see where the problem is. Quote Link to comment https://forums.phpfreaks.com/topic/9920-email-parse-error/#findComment-36881 Share on other sites More sharing options...
AndyB Posted May 18, 2006 Share Posted May 18, 2006 [code]$message = "First Name: $firstnameEmail Address: $emailaddressVerify Email: $verifyemailDescription: $description"[/code]THAT needs to have a ; at the end to complete the statement. Quote Link to comment https://forums.phpfreaks.com/topic/9920-email-parse-error/#findComment-36898 Share on other sites More sharing options...
Ninjakreborn Posted May 18, 2006 Author Share Posted May 18, 2006 I know I saw that just a few minutes ago. Quote Link to comment https://forums.phpfreaks.com/topic/9920-email-parse-error/#findComment-36906 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.