Re: checking status of a HTML checkbox
| From: | - Edwin | Date: | Fri, 10 Jan 2003 09:31:05 +0000 |
| Subject: | Re: checking status of a HTML checkbox | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131063@lists.php.net to get a copy of this message | ||
"Shams" <shamskhanmalik@hotmail.com> wrote:
[snip]
> At the moment I am doing this:
>
> if ( $_POST["insurance"] == "yes" )
> {
> }
>
> But is there a more "accurate" way of checking the exsistence of
> "insurance"?
[/snip]
I think you're looking for isset():
http://www.php.net/manual/en/function.isset.php
- E
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/