Jump to content

Any ideas?


GetReady

Recommended Posts

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.

Link to comment
Share on other sites

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';}
?>

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.