Re: [PHP3] HTTP_POST_VARS(as soon as possible thanks)

From: Date: Sun, 09 Apr 2000 13:05:59 +0000
Subject: Re: [PHP3] HTTP_POST_VARS(as soon as possible thanks)
Groups: php.dev 
Request: Send a blank email to php-dev+get-17761@lists.php.net to get a copy of this message
I have used the following with good results. function postvalue(){ global $HTTP_POST_VARS; if ($HTTP_POST_VARS) while (list($key,$item)=each($HTTP_POST_VARS)) { echo " <input type='hidden' name='$key' value='$item'>\n"; } } Simply call the function with echo postvalue(); One problem I did run into with this is the inability to call it a second time in the same page. Maybe someone could suggest a method of producing it multiple times. Bryan -----Original Message----- From: Kamran Hamid Hassan <kHamidHassan@bigfoot.com> To: php-dev@lists.php.net <php-dev@lists.php.net>; php3@lists.php.net <php3@lists.php.net> Date: April 9, 2000 9:01 AM Subject: [PHP3] HTTP_POST_VARS(as soon as possible thanks) HI, i want to access variable , created by form method , i knew it is access by using $HTTP_POST_VARS but i am unable to use it successfully. May any body know how to access variables from $HTTP_POST_VARS array. thanks in advance Kamran H. Hassan Example. <form method="Post" action="<?php echo $PHP_SELF ?>"> <INPUT type = "text" name="regno"> .. .. .. <INPUT type="submit" name="submit" value = "login"> </form i want to access regno through out of the site. and if any one have any other idea to access it through out the site, please let me know thanks

« previous php.dev (#17761) next »