How can I send alternative value 0 when unchecked or how can I prevent this <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>?
Sending 0 instead "" when radio button unchecked
Moderator: General Moderators
Sending 0 instead "" when radio button unchecked
I have a collection of radio buttons that have to send several values via post to database. When they are checked, they send the value but when they are unchecked, they send "" (nothing) and it is stored in table (In which default content was 0) this cause me troubles.
How can I send alternative value 0 when unchecked or how can I prevent this <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>?

How can I send alternative value 0 when unchecked or how can I prevent this <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>?
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC