Re: [PHP] checking status of a HTML checkbox

2003-01-10 Thread - Edwin
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

Re: [PHP] checking status of a HTML checkbox

2003-01-10 Thread Shams
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

2003-01-10 Thread Larry Brown
: 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

RE: [PHP] checking status of a HTML checkbox

2003-01-10 Thread - Edwin
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

RE: [PHP] checking status of a HTML checkbox

2003-01-10 Thread Larry Brown
: [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