Re: resubmitting $POST data to another script
| From: | Marek Kilimajer | Date: | Tue, 02 Mar 2004 23:48:15 +0000 |
| Subject: | Re: resubmitting $POST data to another script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179321@lists.php.net to get a copy of this message | ||
Chris Shiflett wrote:
--- Marek Kilimajer <kilimajer@webglobe.sk> wrote:This method does not lose any post data as the whole $_POST array is serialized. Then it is unserialized back to $_POST array at the second page.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).