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. } elseif ($toscheck = "off")
  3. {
  4. $message = "You must accsept the Terms of Service if you wish too register.";
  5. }else{
  6.  


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

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


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"