Hi,
I have basically created a variable for a checkbox which is currently set to 1 and when my form is submitted to the database, the database automattically enters the value 1. what i want to have it do instead is check if the checkbox has been checked, if it has, enter the value 1, if not, enter 0.
The variable I am using is simply: check_var = 0
How is this done?
Thanks
I have basically created a variable for a checkbox which is currently set to 1 and when my form is submitted to the database, the database automattically enters the value 1. what i want to have it do instead is check if the checkbox has been checked, if it has, enter the value 1, if not, enter 0.
The variable I am using is simply: check_var = 0
How is this done?
Thanks