Welcome Guest, Not a member yet? Register   Sign In
Database Checkbox in validation
#1

[eluser]Yash[/eluser]
Hi,

I need to populate a checkbox list from database. and load as per list in database.Achieved.

I've problem once it populate and user submit with some error now I need to remember this list and load.

I've tried validation.Not effective I feel.

Any idea?
#2

[eluser]Seppo[/eluser]
In pseudo code it would be something like this
if ((form was submitted && this was checked) || (form was not submitted and this was checked on db)) echo ' checked="checked"';

you can use the form usbmit button to check if it was submitted.




Theme © iAndrew 2016 - Forum software by © MyBB