Re: $_POST into a formatted string, help!
| From: | Scott Fletcher | Date: | Wed, 03 Jul 2002 13:35:18 +0000 |
| Subject: | Re: $_POST into a formatted string, help! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105181@lists.php.net to get a copy of this message | ||
Hey, that is new to me! Thanks! FletchSOD
"Kevin Stone" <kevin@helpelf.com> wrote in message
news:01de01c22216$984c5740$6501a8c0@kevin...
> 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
> >
>