Re: resubmitting $POST data to another script
| From: | Chris Shiflett | Date: | Wed, 03 Mar 2004 21:33:47 +0000 |
| Subject: | Re: resubmitting $POST data to another script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179376@lists.php.net to get a copy of this message | ||
--- Charlie Fiskeaux II <charlie@cre8tivegroup.com> wrote:
> I think the hidden fields idea is the best one; I finally found a
> solution that uses each() and list() to travel the $_POST array,
> and I think it will work nicely.
You might strongly consider using foreach() instead for reasons of
performance (1000% or more faster):
http://www.blueshoes.org/en/developer/php_bench/
You could simply:
foreach ($_POST as $name => $value)
{
...
}
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming mid-2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/