Hello Johan
   the program just can let me get the post string like my example
I want post the xml file content to a php file, then I want get the post
string that it's xml content.

hehe, thanks for your help

--
Yorgo Sun
Project Manager
Technology Dept. Tom.com
Email:[EMAIL PROTECTED]  Mobile:13701243390 Phone:65283399-121 TomQ ID:yorgo
http://www.ruisoft.com
"Johan Holst Nielsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > $HTTP_SERVER_VARS['QUERY_STRING']  --> it just can read the content by
GET
> > method.
> >
> > I want POST content
>
> Ah okay. Try this:
>
> $post_query = "";
> $keys_arr = array_keys($HTTP_POST_VARS);
> $keys_size = sizeof($key_arr);
> for($i=0; $i<$keys_size; $i++) {
>     if($i == 0) {
>         $post_query .= $keys_arr[$i]."=".$HTTP_POST_VARS[$keys_arr[$i]];
>     }
>     else {
>         $post_query .=
"&".$keys_arr[$i]."=".$HTTP_POST_VARS[$keys_arr[$i]];
>     }
> }
>
> Regards,
> Johan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to