I really don't think this can be done but...
I have a list of checkboxs, and when I submit the form
only those boxs that are "checked" will be returned
to my .cgi script with the value set.
Is there anyway to to have an alternate value returned.
....wait.... idea just hit just have to test it.
I'm thinking prior to submitting, I scan the elements for
the checkboxes I want. If they are unchecked, then check
them, but then change their value, so my .cgi can check
for the changed value.
so... my HTML would read
<INPUT TYPE="CHECKBOX" NAME="BOXX" VALUE="YES">
my javascript will set the .checked to true, then
set the .value to "NO"
otherwise the value will be "YES"
Or is there an HTML way to set an unchecked value?
THanks
George
I have a list of checkboxs, and when I submit the form
only those boxs that are "checked" will be returned
to my .cgi script with the value set.
Is there anyway to to have an alternate value returned.
....wait.... idea just hit just have to test it.
I'm thinking prior to submitting, I scan the elements for
the checkboxes I want. If they are unchecked, then check
them, but then change their value, so my .cgi can check
for the changed value.
so... my HTML would read
<INPUT TYPE="CHECKBOX" NAME="BOXX" VALUE="YES">
my javascript will set the .checked to true, then
set the .value to "NO"
otherwise the value will be "YES"
Or is there an HTML way to set an unchecked value?
THanks
George
Comment