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: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php