Re: $_POST into a formatted string, help!
| From: | Kevin Stone | Date: | Tue, 02 Jul 2002 22:19:50 +0000 |
| Subject: | Re: $_POST into a formatted string, help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105052@lists.php.net to get a copy of this message | ||
Oh man I hope you don't shoot yourself when you realize how easy this is..
foreach ($_POST as $key => $val)
{
$str .= "&$key=$val";
}
Then just crop the first char off and there you go.
-Kevin
----- Original Message -----
From: <php@net.co.cr>
To: <php-general@lists.php.net>
Sent: Tuesday, July 02, 2002 4:10 PM
Subject: [PHP] $_POST into a formatted string, help!
> Hello,
>
> I need to get _$POST into a string in this form:
> tree=green&sky=blue&sun=yellow , how can i accomplish this?
>
> THanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>