acctman Posted October 15, 2008 Share Posted October 15, 2008 why is my php error giving an error on the opening { if ($_POST['age'] != strval(intval($_POST['age'])) { $errors[] = 'Please enter a valid age.'; } Link to comment https://forums.phpfreaks.com/topic/128487-syntax-error-unexpected/ Share on other sites More sharing options...
ghostdog74 Posted October 15, 2008 Share Posted October 15, 2008 make sure your open and close braces match each other Link to comment https://forums.phpfreaks.com/topic/128487-syntax-error-unexpected/#findComment-665907 Share on other sites More sharing options...
aeonsky Posted October 15, 2008 Share Posted October 15, 2008 Three ((( on left side, only two )) on the right. Lmao, sorry, so late with this. XD Link to comment https://forums.phpfreaks.com/topic/128487-syntax-error-unexpected/#findComment-665913 Share on other sites More sharing options...
rocoso Posted October 15, 2008 Share Posted October 15, 2008 if ($_POST['age'] != strval(intval($_POST['age']))) { $errors[] = 'Please enter a valid age.'; } Link to comment https://forums.phpfreaks.com/topic/128487-syntax-error-unexpected/#findComment-665914 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.