I have an insert statement that requires a value from a certain field.
This field is a checkbox that saves a text value into the database, the value in this case is "Mon"
When its selected all works well, but if the checkbox is not selected it doesn't pass any value. I need it to pass:
"N" if not checked and "Mon" if checked
ASPWeb DevelopmentHTML
Last Comment
Dave Baldwin
8/22/2022 - Mon
Dave Baldwin
Doesn't work that way. Browsers won't pass a value for a checkbox that is not checked. That is standard operation in all browsers. Same is true for radio buttons.
You need to provide your own default value and change it only when you get a value from that checkbox.
Aleks
ASKER
got it. Can I do that in my update statement ?
I had this same page in ASP/JavaScript and this part worked, when moved to ASP/VB script it stopped working.
This is the line that updates on of the fields that has this issue:
You need to provide your own default value and change it only when you get a value from that checkbox.