Re: How to ovoid Undefined Variable error

From: Date: Mon, 30 Oct 2000 05:33:26 +0000
Subject: Re: How to ovoid Undefined Variable error
Groups: php.general 
Request: Send a blank email to php-general+get-22609@lists.php.net to get a copy of this message
Basically if isset($checkboxname) returns true it was ticked, if not it wasn't. This is of course assuming you haven't used that name in any other form field. Gerald -----Original Message----- From: Get Now <get_now@hotmail.com> To: php-general@lists.php.net <php-general@lists.php.net> Date: Monday, 30 October 2000 2:13 pm Subject: [PHP] How to ovoid Undefined Variable error >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. > >regards, >SK

« previous php.general (#22609) next »