Re: resubmitting $POST data to another script

From: Date: Wed, 03 Mar 2004 09:38:40 +0000
Subject: Re: resubmitting $POST data to another script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179333@lists.php.net to get a copy of this message
Chris Shiflett wrote:
It loses all new data: <input type="hidden" name="post" value="<?php echo htmlspecialchars(serialize($_POST)); ?>" /> <input type="text" name="this_will_be_lost" /> Because of this: $_POST = unserialize(stripslashes($_POST['post']));
I think array_merge will fix this: $_POST = array_merge($_POST,unserialize(stripslashes($_POST['post']))); Erwin Kerk Web Developer

« previous php.general (#179333) next »