Re: how can I get the post content in php

From: Date: Thu, 15 Nov 2001 07:56:52 +0000
Subject: Re: how can I get the post content in php
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-74680@lists.php.net to get a copy of this message
> $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

« previous php.general (#74680) next »