Welcome Guest, Not a member yet? Register   Sign In
set_checkbox after form validation
#1

[eluser]Wonder Woman[/eluser]
Hi,

I have a checkbox which has a null value, which I would like to be 0 and when the user clicks on it for it to change to 1.

I have form validation set up but when the form is repopulated with the sent form data the checkbox does not change.

If anyone can help me that would be great.

Code:
echo form_label('Anonymous', 'anonymous');
echo form_checkbox('anonymous', set_checkbox('anonymous'), FALSE);

Thanks!


Messages In This Thread
set_checkbox after form validation - by El Forum - 07-20-2011, 08:06 AM
set_checkbox after form validation - by El Forum - 07-20-2011, 09:32 AM
set_checkbox after form validation - by El Forum - 07-20-2011, 09:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB