php variable

From: Date: Mon, 13 Oct 2003 14:31:09 +0000
Subject: php variable
Groups: php.general 
Request: Send a blank email to php-general+get-165989@lists.php.net to get a copy of this message
Hello, If i set a variabele in lets say 'script one'. When i jump into 'script two', is there a way (without cookies) to read the variable set in 'script one' Like: SCRIPTONE.PHP: <html> <body> <?php> $var=¨How are you¨; ?> <form method="post" action="scripttwo.php"> <table> <tr> <td style="vertical-align: top;">name:</td> <td style="vertical-align: top;"> <input type="text" name="name"></td> </tr> </table> <input type="submit" name="submit" value="OK"> </form> </body> </html> SCRIPTTWO.PHP: <html> <body> <?php $naam=$_POST['naam']; print ¨Hello $naam¨; print ¨$var¨; ?> </body> </html> THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO.

« previous php.general (#165989) next »