RE: [PHP] checkbox validation
| From: | Matt Williams | Date: | Wed, 18 Apr 2001 07:55:04 +0000 |
| Subject: | RE: [PHP] checkbox validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49148@lists.php.net to get a copy of this message | ||
> After I submit to next page, at next page, how do I check which
> check box is checked?
> like this?
>
> if ($id=="on") {
> do something
> }else{
> do something
> }
Hi
try this assuming you have no toher check boxes called $id
if(isset($id))
{
do something
}else{
do other
}
M@