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
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