sawade Posted July 28, 2009 Share Posted July 28, 2009 I am getting the following error from my contact form. "Parse error: syntax error, unexpected $end in contactus.php on line 131" Line 131 is </html>. I have looked the code over several times and am not seeing the problem, any help would be greatly appreciated. I have attached the form and the captcha script. Thank you! [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/167708-solved-php-form-w-validation-and-captcha/ Share on other sites More sharing options...
pengu Posted July 28, 2009 Share Posted July 28, 2009 put <?php } ?> at the end of ur form. you opened a if statement and didn't close it also in your textarea remove the " /> after the php, because it just displays within the textarea Quote Link to comment https://forums.phpfreaks.com/topic/167708-solved-php-form-w-validation-and-captcha/#findComment-884388 Share on other sites More sharing options...
ldougherty Posted July 28, 2009 Share Posted July 28, 2009 Indeed, on line 90 you have if ($output_form == true) { But you never close the tag. You just need to close the statement after the </form> tag on line 126 with } Quote Link to comment https://forums.phpfreaks.com/topic/167708-solved-php-form-w-validation-and-captcha/#findComment-884399 Share on other sites More sharing options...
sawade Posted July 28, 2009 Author Share Posted July 28, 2009 Oh wow, so simply. Thank you for the extra pair of eyes to spot it. Greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/167708-solved-php-form-w-validation-and-captcha/#findComment-884462 Share on other sites More sharing options...
.josh Posted July 28, 2009 Share Posted July 28, 2009 FYI "unexpected end" errors 99% of the time mean you forgot a closing bracket, parenthesis or semicolon somewhere (usually bracket). So next time you get it, that's what to look for. Quote Link to comment https://forums.phpfreaks.com/topic/167708-solved-php-form-w-validation-and-captcha/#findComment-884477 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.