Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 18th, 2004, 05:45 PM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Convert all items in _POST to hidden form

I am looking for a way to take every item in a _POST array and convert it into hidden form variables in the current page.

thanks.
 
Old February 16th, 2005, 07:18 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try:

<?php

foreach ($_POST as $key => $value) {
   echo "<input type='hidden' name='$key' value='$value'>";
}
?>

This should work.






Similar Threads
Thread Thread Starter Forum Replies Last Post
access hidden form value with Mech - Mechanize crmpicco Perl 1 May 29th, 2011 08:42 AM
Adding Items to the combobox from the second form Raghavendra_Mudugal C# 7 May 12th, 2005 06:12 AM
Hidden form value johnjohn Classic ASP Databases 2 November 10th, 2004 01:00 PM
CH3, pg 96 Hidden Form Fields wadesmart BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 19 October 28th, 2003 03:18 PM
Hidden items in list boxes dbkester Access VBA 2 August 28th, 2003 03:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.