[eluser]RaGe10940[/eluser]
Hello, I am not new to form validation nor am I not new to set_(what ever, radio, checkbox, value, etc) in CI.
However I can not for the life of me get this part to work for me.
Scenario :
I have two different "views" for the same exact page. If your account is a student account you can not see two check boxes (view 1)
if your account is a staff member you can see the check boxes (thats the "second" version of the view)
so they are both exactly the same except for the 2 added check boxes.
With those two check boxes, I have a id set to them so if the check boxes are clicked the jquery will react with bringing up a drop down menu, and the other check box will remove two input fields.
that works fine, but if per say I run through form validation the value (the checked value) does not get saved so a staff member would have to re-check the check box.
Is this a known issue? This is my form check box code :
Code:
<font color="#ff0000" size="2">Check Box If You Do Not Have An A-Number</font><input type="checkbox" name="student" value="yes" id="current" <?php echo set_checkbox('student', 'yes'); ?>/>
and
Code:
<font color="#ff0000" size="2">If student is on the phone check box</font><input type="checkbox" name="phone" value="yes" id="phone" <?php echo set_checkbox('phone', 'yes'); ?>/>
I have other places on my page where I use set_radio and that works fine, its literally these two only check boxes. This is confusing me.
If you guys need to see the jquery let me know.