> 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.

Even easier, though maybe requiring a tiny bit extra memory to deal with 
the array:

$arr = array();
foreach ($_POST as $key => $val) {
        $arr[] = $key . '=' . $val;
}
$str = implode('&', $arr);




Erik







----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to