On Tuesday 12 February 2002 14:22, Tehn Yit Chin wrote: > Hi all, > > If I have the following code, > > <?php > global $some_var > <FORM action="next_page.php" method="post"> > type="submit" name="submit" value="foobar"> > </FORM> > ?> > > > When the user hits the submit button, the value in some_var disappears? Is > there a way of perserving the value in $some_var.
GLOBAL in php is not the same as global in ASP. It is only global within the lifetime of the script. What you need is a hidden element in your form holding the value of $some_var. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php