Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 880
0 Users 12 Guests Online
Forum Index » PHP + MySQL » [HELP] tos check
Posted on Wednesday 25th February 2 at 10:52 PM
peza
templates/default/images/noavatar.png's Avatar
Newbie
In my signup script i have

PHP Code
1
2
3
4
5
} elseif ($toscheck = "off")
{
$message = "You must accsept the Terms of Service if you wish too register.";
}else{


but its not working the html for the tos check box is as follows:

PHP Code
1
2
3
<td width="50%">I accept the Terms of Service (must accsept)*: </td>
<td width="50%"><input name="toscheck" type="checkbox" value="toscheck"/></td>


When i check the box it still says i have not accsepted the tos when i have! any ideas?
Posted on Wednesday 25th February 2 at 11:17 PM
ShadowMage
templates/default/images/noavatar.png's Avatar
Senior Member
change = "off" to == "off" or != "on"