Passing values from one page to another

From: Date: Mon, 25 Aug 2003 03:57:51 +0000
Subject: Passing values from one page to another
Groups: php.general 
Request: Send a blank email to php-general+get-160631@lists.php.net to get a copy of this message
Hello all, [snip] -------------------------------------------- //Page0.php <a href="page1.php?empid=1">Enter</a> -------------------------------------------- -------------------------------------------- //page1.php <script language="javascript"> function submitform() { //Check for empty values in text box } </script> <form onsubmit='return submitform()' method=POST action='page2.php'> <input type=text name=uname > <input type=hidden name=empid value=<?php echo $empid;?>> </form> <?php echo $empid; ?> -------------------------------------------- -------------------------------------------- //page2.php <?php echo $empid; ?> -------------------------------------------- In page 1 I am able to get the value 1 of empid. But in page 2 I am not able to get it. Any solutions -murugesan

« previous php.general (#160631) next »