joecooper Posted January 13, 2008 Share Posted January 13, 2008 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? Link to comment https://forums.phpfreaks.com/topic/85821-solved-checkbox-verification-terms-and-conditions/ Share on other sites More sharing options...
Fyorl Posted January 13, 2008 Share Posted January 13, 2008 Your input's name is 'agree' but you're using 'accept' in your code. Link to comment https://forums.phpfreaks.com/topic/85821-solved-checkbox-verification-terms-and-conditions/#findComment-438001 Share on other sites More sharing options...
joecooper Posted January 13, 2008 Author Share Posted January 13, 2008 hehe ... that could be why Link to comment https://forums.phpfreaks.com/topic/85821-solved-checkbox-verification-terms-and-conditions/#findComment-438007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.