----- Original Message ----- From: "Erik Price" <[EMAIL PROTECTED]> > > foreach ($_POST as $key => $val) > > { > > $str .= "&$key=$val"; > > }
Make sure you define $str = ""; before it enters the loop, othewise you'll throw some warnings if your error reporting level is set high. It's because $str is undefined on the first loop, yet your adding something to it. > 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); Hmmm...doesn't look easier, but whatever works! :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php