Re: Capturing $_POST variables

From: Date: Fri, 28 Nov 2003 13:54:19 +0000
Subject: Re: Capturing $_POST variables
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-171271@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Shaun Am Freitag, 28. November 2003 14:41 schrieb Shaun: > Thanks for your reply, > > I don't really need to do anything with them, just make sure they > all retain their original values... If you are using a form to sent the data again to third page you can do this foreach ($_POST as $key => $value) { echo "<input type=\"hidden\" name=\"".$key."\" value="". $value."\">"; } Another way is the following: $postData = $_POST; echo "<input type=\"hidden\" name=\"postData\" value="". $postData."\">"; CU Thorsten - -- Thorsten Körner | http://www.123tkShop.org openSource e-Commerce | http://www.123tk.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/x1ORs5R35vLkl/cRAgqyAJwP/rfZugqf1pDotQm7pnFB2dmaHACfUEDv xsZScbosfp8E2omTFzjxDCo= =TPiS -----END PGP SIGNATURE-----

« previous php.general (#171271) next »