Matthew,
use $_POST/$_GET/$_REQUEST (depending on your form method) and foreach()
eg:
foreach($_POST['image'] as $key=>$value)
{
echo "$key -> $value<br>\n";
}
Martin
> -----Original Message-----
> From: Matthew Oatham [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 12 February 2004 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] form array
>
>
> Hi,
>
> 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 ?
>
> Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php