Re: post problems

From: Date: Thu, 09 Aug 2001 08:57:28 +0000
Subject: Re: post problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61961@lists.php.net to get a copy of this message
lee.melville@lineone.net (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

« previous php.general (#61961) next »