Manditory check box on submit form

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 30, 2011   (RSS)

Re: [Toledoh] Manditory check box on submit form

By Dave - August 30, 2011

Hi Tim,

It's because $_REQUEST['declaration'] doesn't have a value when you first display the form, so you're getting value="".

Try using 1 for the value like this:

<input name="declaration" type="checkbox" value="1">

Let me know if that works, or if you need the value to be something specific.

Hope that helps! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Manditory check box on submit form

By Toledoh - August 30, 2011

That certainly helps! Thanks Dave
Cheers,

Tim (toledoh.com.au)