Jump to content

[SOLVED] checkbox verification (terms and conditions)


joecooper

Recommended Posts

i have this html code in a form:

 

<input type="checkbox" name="agree" value="ON">

 

and the way i was trying to check if its ticked was to add this in PHP:

 

$accept=$_POST['accept'];
if($accept){
//continue with registration
}

 

it works when checking if textboxs are filled in but doesnt do anything with checkboxes.. .any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.