Re: expecting a variable

From: Date: Fri, 12 Oct 2001 09:09:39 +0000
Subject: Re: expecting a variable
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9822@lists.php.net to get a copy of this message
You might try something like: if (!isset($element1)) { $element = ""; } Which would check that the value is set, and if not, initialize it. At 16:59 12/10/2001 +0800, you wrote:
my login page (login.php) passes it's form elements to my main page (main.php). in my main page, i try to call the elements from my login page as $element1; but if go to my main page directly, without going to the login page, php tells me that $element is not initialized, which is true because it is not initialized, and the one who will be initializing it will be the form which is not available. Please help. again -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
/*** * Jonathan Wright * j.d.e.wright@cs.cf.ac.uk * ICQ 21961373 ***/

« previous php.windows (#9822) next »