Re: Keeping Variables

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Keeping Variables
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-8140@lists.php.net to get a copy of this message
Chris: in view.php: <a href="anotherpage.php?cr=yes">Click here to see the value of cr</a> in anotherpage.php: echo $cr; //outputs 'yes' Or: <?php <form method=\"POST\" action=\"$PHP_SELF\"> <input type="hidden" name="arse" value="big"> more form stuff etc etc yadda yadda yadda </form> ?> //Submitting the form will reload the page and if you detect for it, //the variable $arse should be available with the value of 'big' HTH ;-) Russ #-------------------------------------------------------# "Believe nothing - consider everything" Russ Michell Anglia Polytechnic University Webteam http://www.apu.ac.uk/webteam r.j.michell@apu.ac.uk +44 (0)1223 363271 ext 2331 www.theruss.com #-------------------------------------------------------#

« previous php.db (#8140) next »