losse
04-17-2006, 10:24 PM
Hi there
Just have a question, I have a checkbox on a form where the user can check on or off and I would like to store that check into a database.
I was wondering how that field would look like in the database and how it would be quiered on the form.
Ideally I would like the database field to say YES if they checked it and NO if they didn't?
So on the form I would have
contact me: <input type="checkbox" name="contact"/>
and what would the "INSERT into" script look like to input whether they checked it or not be so that in my DB it would say YES if they did and NO if they didn't?
Thanks
Just have a question, I have a checkbox on a form where the user can check on or off and I would like to store that check into a database.
I was wondering how that field would look like in the database and how it would be quiered on the form.
Ideally I would like the database field to say YES if they checked it and NO if they didn't?
So on the form I would have
contact me: <input type="checkbox" name="contact"/>
and what would the "INSERT into" script look like to input whether they checked it or not be so that in my DB it would say YES if they did and NO if they didn't?
Thanks