On Thu, 22 Feb 2001 08:24, Brian White wrote:
> That's the point - why do I have to have 'name="myArray[]"'. Why
> do I have to specify the '[]'s at all?
>
> Brian
>
> At 13:44 21/02/2001 -0800, jason cox wrote:
> >You don't have to specify them as "PHP arrays". You
> >can do something like:
> >
> ><input type=text name="myArray[]">
> ><input type=text name="myArray[]">
> ><input type=text name="myArray[]">
> ><input type=text name="myArray[]">
> >
> >PHP will create the array for you.
> >
> >Jason
>
> -------------------------
> Brian White
> Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
> Phone: +612-93197901
> Web: http://www.steptwo.com.au/
> Email: [EMAIL PROTECTED]
Because otherwise you have one variable name, and it will contain the
last value which was assigned to it.
I don't know any languages where you can do:
$value = 'A'
$value = 'B'
$value = 'C'
print $value
and get a result other than C
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]