Re: Differences in arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Yes, I did that and it works correctly now. I was
> tryin g to better understand why the difference in the
> behaviour.
> 
> Stuart


The first array is created by selecting individual elements from a
muli-select list
(My multi-select is a little hazy, but I think it's something like...)

<select multiple>
<option>One</option> (Selected)
<option>Two</option>
<option>Three</option> (Selected)
<option>Four</option>
</select>

...would create a 2 element array. The second array is created by the
rendered objects. I'm guessing you created text fields like:

<input type="text" name="schools[]">
<input type="text" name="schools[]">
<input type="text" name="schools[]">

...That creates an array with 3 values, empty until the user types
something, upon POST (or GET) of the form.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux