cant store checkbox vale ..... ?????
| From: | toby z | Date: | Tue, 30 Jul 2002 06:16:36 +0000 |
| Subject: | cant store checkbox vale ..... ????? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-15007@lists.php.net to get a copy of this message | ||
hi guys
im stuck with check boxes now
n id b really gratefull if anyone d help plx ....
the thing is i cnt get the cheked value from a
checkbox
<input type=checkbox name=news_letter_subs >sign me up
fo weekly news letter and updates</input>
the processing for this is:
$isql = "insert into usr_inf (email, firstName,
lastName, news_letter_subs) " .
"values ('" . $email . "', '" . $firstName . "',
'" .
$lastName . "','" . $news_letter_subs ." ') ";
after a million checks on the passed data all the
fileds get stored in my db
except fo news_letter_subs
i get a 0 fo it in my db :S
where m i mucking it up
guyz plz hlp ....
thnx a million....
toby .....
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com