Re: resubmitting $POST data to another script
| From: | Marek Kilimajer | Date: | Tue, 02 Mar 2004 23:21:22 +0000 |
| Subject: | Re: resubmitting $POST data to another script | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179314@lists.php.net to get a copy of this message | ||
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']));
Daniel Clark wrote:
You could loop throught the $_POST[] data and create 170 hidden fields with about 3 lines.When you create the "view" page store all of the passed variables in hidden form fields. That way they can then be submitted on to the next script.I could do it that way, but I was hoping for a way of just passing all the data at once; Since there's 170 fields, that's a lot of data to manually handle.