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"
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to