Sending 0 instead "" when radio button unchecked
Posted: Thu Dec 11, 2003 10:12 am
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>?