php - Send all values from a combobox to an array variable through post method -
I want to send all values from a combo box inside a php into a php $ _POST variable.
Notice: I do not have to send the selected values, but nothing to choose from is nothing. My attempt was to do it (it is not in the right way, but I think it is closed): HTML code: PHP code: My work: P> After research I found it was not possible to do this with pure HTML, so I had to use Javascript and AJAX. I took all the children's elements and gave them '.' Included in a string: You have to use a multi-select list for this purpose, because the selection list only sends a value that is selected if you want to use only this selection list So I think that you can get all the options only through jquery
& lt; Form action = "method =" post "name =" form "id =" list2 "& gt; Select multiple sizes =" 8 "style =" width: 280 "& gt; & lt; option value =" aline Alternate Chestel & lt; / option & gt; Option value = "Bruno.Freitas" name = "user []" & gt; Bruno Sosa Phatas & lt; / Option & gt; & lt; / select & gt; & lt; input type = "submit" name = "submit" value = "send" />
if (isset ($ _ POST ['submit']) {$ $ _POST resonance [user] [ 0]. ''. $ _ Post ['Usage Expected results: aline.chastel bruno.freitas
$ ("# btngrafico"). Click (function () {for (i = 0; i
Comments
Post a Comment