GetReady Posted June 13, 2010 Share Posted June 13, 2010 Hey my code was workign fine before i added these lines into the correct areas of the php that im 100% sure about the following was added; $tos= $_POST['tos']; $tos= strip_tags($tos); }else{ if (!(isset($tos))){ echo 'you must agree to our TOS'; }else{ <td colspan="2"><input type="checkbox" name="tos" value="true"> I have read and agree to comply with the <a href="tos.php" target="_new">terms of service</a></td> Im getting the error message; Parse error: syntax error, unexpected $end Any help would be great; Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/204615-any-ideas/ Share on other sites More sharing options...
calmchess Posted June 13, 2010 Share Posted June 13, 2010 you have a { either out of place or you have an extra one .....you need to go through all your functions a if statments and make sure they are all opened and terminated properly you also need to make sure you have ; terminating all statements. Quote Link to comment https://forums.phpfreaks.com/topic/204615-any-ideas/#findComment-1071316 Share on other sites More sharing options...
steveangelis Posted June 13, 2010 Share Posted June 13, 2010 }else{ if (!(isset($tos))) { echo 'you must agree to our TOS'; }else{ This it the problem. You do not end with a } after the TOS'; line. Quote Link to comment https://forums.phpfreaks.com/topic/204615-any-ideas/#findComment-1071317 Share on other sites More sharing options...
GetReady Posted June 13, 2010 Author Share Posted June 13, 2010 ahhh thanks for that, that was the problem just having issues with the ifs coflicting now, should this not work now? as i now need it to be an individual action. <? if (!(isset($tos))) { echo 'you must agree to our TOS';} ?> Quote Link to comment https://forums.phpfreaks.com/topic/204615-any-ideas/#findComment-1071320 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.