RE: [PHP] How to ovoid Undefined Variable error
| From: | Don Read | Date: | Mon, 30 Oct 2000 04:46:49 +0000 |
| Subject: | RE: [PHP] How to ovoid Undefined Variable error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22607@lists.php.net to get a copy of this message | ||
On 30-Oct-00 Get Now wrote:
> Folks,
>
> I have Contact request check box in an .html form. When I validate this
> form in .php, I get a Warning saying that Contact request variable is
> undefined.
>
> I get this warning only when I don't select the check box or when I
> initialize these variable in my global.php file. I also have
> error_reporting(15) in .PHP.
>
> What is the best way to ovoid this problem?. Thanks in advance.
>
if (! isset($req))
$req=0;
Regards,
--
Don Read dread@texas.net
There are old sailors, and there are foolish
sailors; but damn few old foolish sailors.
---------------------------------------------