Re: form array

From: Date: Thu, 12 Feb 2004 13:15:47 +0000
Subject: Re: form array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177512@lists.php.net to get a copy of this message
On 12 Feb 2004 at 0:29, Matthew Oatham wrote: > I have a form on page1 that i want to submit to another php page - page2 > > the form has the fields > > <input type="hidden" name="image[one]" value="one"> > <input type="hidden" name="image[two]" value="two"> > <input type="hidden" name="image[three]" value="three"> > > Basically I want to have these form field values as an array of values I > can loop through on page 2 but what do I put on page 2 too get the array > and loop through ? On page two you'll have $_POST['image'] as an array containing elements 'one', 'two' and 'three' ($_POST['image']['one'] etc). This is *pretty* basic, so I'm guessing you'll have to learn some more PHP before you can actually do anything with this array. If you have some experience with other programming languages, you'll probably find that the first few chapters of the official PHP manual (http://www.php.net/manual/en/ ) will get you up and running in no time flat. Good luck, Erik

« previous php.general (#177512) next »