Re: FORM RELATED QUESTION - I

From: Date: Tue, 05 Mar 2002 03:48:04 +0000
Subject: Re: FORM RELATED QUESTION - I
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87220@lists.php.net to get a copy of this message
On Tuesday 05 March 2002 10:39, karthikeyan wrote: > how do i accomplish the same in php. > > I have one solution using GET method but I would really like to have it > in POST because I am passing lots of values to this php file. > > ========== > $ar=explode('&',$QUERY_STRING); > > foreach ($ar as $stritem) { > if(substr($stritem, 0, 5) == "order") { > $ordervalue = substr($stritem, 6); > echo "\n<input type=\"hidden\" name=\"order\" > value=\"" . > urldecode($ordervalue) . "\">\n"; } > } > ========== I don't fully understand your question and what your problem is. Taking a stab in the dark, did you want to retrieve the values resulting from a POST? If so then use: $HTTP_POST_VARS (php <= 4.06) $_POST (php > 4.06) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Small things make base men proud. -- William Shakespeare, "Henry VI" */

« previous php.general (#87220) next »