insert in n aray all value of a select
if on a select multiple I select all options
for(var x=0,objs=tuaselect.options;x<objs.length;x++)
objs[x].selected="selected";
in php how I can get the array?
------------
which other solutions are there for to capture from a select all its
options and insert in an array php (but not how string)?
Re: insert in n aray all value of a select
On Jul 2, 11:47 am, artev <mailnotspa... [at] notspamm.nn> wrote:
> if on a select multiple I select all options
> for(var x=0,objs=tuaselect.options;x<objs.length;x++)
> objs[x].selected="selected";
>
> in php how I can get the array?
>
> ------------
> which other solutions are there for to capture from a select all its
> options and insert in an array php (but not how string)?
Assuming that tuaselect is the name of the select menu and that you
are sending this via POST.
$_POST['tuaselect'][0]
$_POST['tuaselect'][1]
$_POST['tuaselect'][2] etc...