Re: resubmitting $POST data to another script
| From: | Chris Shiflett | Date: | Tue, 02 Mar 2004 23:43:27 +0000 |
| Subject: | Re: resubmitting $POST data to another script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179320@lists.php.net to get a copy of this message | ||
--- Marek Kilimajer <kilimajer@webglobe.sk> wrote:
> Let's not make it complicated:
>
> confirmation.php:
>
> <input type="hidden" name="post" value="<?php echo
> htmlspecialchars(serialize($_POST)); ?>">
>
> email.php:
>
> $_POST = unserialize(stripslashes($_POST['post']));
I think the other person's suggestion (hidden fields) was made so that the
original poster doesn't lose all other POST data (since he mentioned a
second POST request).
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/