[EMAIL PROTECTED] (L Melville) wrote:

 > Hi,
 > I am using post to pass information to a php script ie;-
 > www..../mypage.phtml?var=3
 > on the page that is being passed the data i am testing for the occurence of
 > var with;-
 > if($var).......
 > this is generating a warning if var is not passed to the page, as I do not
 > always want to pass the data to it, how can i test for the occurence of var
 > and respond to it from within the called page?

maybe you need to globalize your var on the page where it's posted to?

if (isset($var)) {
    echo "var is set";

Henrik Hansen

PHP General 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]

Reply via email to