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? Quote 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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.