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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
/***
* Jonathan Wright
* [EMAIL PROTECTED]
* ICQ 21961373
***/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]