Page 1 of 1

SELECT field in a HTML form

Posted: Mon Mar 24, 2003 1:47 pm
by rodrigocaldeira
Hi everyone,

I have a form that contains a SELECT field named chkProduto2 with the "multiple" option enabled.

How could PHP read the selected options in this field?

Note.: I cant rename my field to "chkProduto2[]" because my Javascript validation will not work correctly.


Cheers


Rodrigo Caldeira

Posted: Mon Mar 24, 2003 2:21 pm
by rodrigocaldeira
I solve it yet!


I create a function that change the field's name to cboProduto[] in submit moment

Posted: Tue Mar 08, 2005 4:56 pm
by illes
rodrigocaldeira wrote:.. create a function that change the field's name in submit moment
Could you please post your function?

Posted: Tue Mar 08, 2005 5:14 pm
by feyd
there's no need to have Javascript rename the field. If you correctly reference the field in the first place, it's name doesn't matter much.

viewtopic.php?t=25976