Shams [EMAIL PROTECTED] 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
thanks a lot, thats what I was looking for
:o)
Shams
- Edwin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Shams [EMAIL PROTECTED] wrote:
[snip]
At the moment I am doing this:
if ( $_POST[insurance] == yes )
{
}
But is there a more accurate way
: Re: [PHP] checking status of a HTML checkbox
thanks a lot, thats what I was looking for
:o)
Shams
- Edwin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Shams [EMAIL PROTECTED] wrote:
[snip]
At the moment I am doing this:
if ( $_POST[insurance
Larry Brown [EMAIL PROTECTED] wrote:
Also look at empty(). I don't know if the $_POST array will send the
key if it as no variable. I know on a regular post it does send the
variable, but it has no value.
What's a regular post anyway?
Well, the key is passed even when there's even though
: [EMAIL PROTECTED]
Subject: RE: [PHP] checking status of a HTML checkbox
Larry Brown [EMAIL PROTECTED] wrote:
Also look at empty(). I don't know if the $_POST array will send the
key if it as no variable. I know on a regular post it does send the
variable, but it has no value.
What's a regular
5 matches
Mail list logo