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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to