phpPete Member

Joined: 07 Aug 2002 Posts: 32
|
Posted: Sat Sep 07, 2002 11:28 am Post subject: Posting all selected options to PHP |
|
|
Ok, due to PHP and JS naming restrictions I'm finding it exceedingly difficult, or perhaps I'm dense, to post multiple selected options from a select list.
If I name my form: name[] ( effectively declaring an array ) then PHP picks up all the selected options no problem, however, I need to process to do a number of things with JS before i post the form and JS doesn't like element names like: name[].
I tried something like this to no avail also:
<form name="f1" ...>
<select name="f1[choices[]]"...>
When i name like so PHP does get all the posted selections, however, i am unable to do my client side processing in JS with this sort of naming.
Can anyone help me out here?
Thanks,
Pete |
|