On Thursday 25 April 2002 02:09, Kevin Stone wrote:
> Concept is solid, method is wrong.  Understand that <name=layer[]> is but
> one index in the array.  To produce an array with multiple indicies you
> must create a separate <input> for each value.  Example..
>
>
>     foreach ($layer as $lay)
>     {
>         echo "<input type='hidden' name='layer[]' value=$lay>";
>     }

I would always quote the value:

  value='xxx' or value="xxx"

a) because the HTML spec requires it?
b) if value contains a space it ain't going to work

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Advice from an old carpenter: measure twice, saw once.
*/

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

Reply via email to