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

From: Date: Sun, 09 Apr 2000 14:01:49 +0000
Subject: Re: Re: [PHP3] HTTP_POST_VARS(as soon as possible thanks)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-17762@lists.php.net to get a copy of this message
Hi, : 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. Put: reset ( $HTTP_POST_VARS ); after the while() loop. Enjoy! Faisal

« previous php.dev (#17762) next »