[thelist] passing a non-form value into an array in php
.jeff
jeff at members.evolt.org
Wed Oct 30 15:52:00 CST 2002
stef,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: DESCHAMPS Stéphane DvSI/SICoR
>
> Mmmmh. I see your concern jeff. Especially with
> Javascript's tendecy to decide for itself what type a
> variable is.
>
> Of course the same could be done with foo0, foo1 and
> then reparsing the names through PHP when data comes
> back to the server.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
exactly. i'd take the naming a step further though and put an underscore
between the name and the number -- foo_0, foo_1, etc. then it becomes a
matter of grabbing anything before the underscore as the name and anything
after the underscore as that's item position relative to the other form
fields.
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list