Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to get values from multiple select/listboxes in php?
    primarykey
    data
    text
    <p>i want to know that how to get multiple selectbox values in php means that i have more than 1 select box on a page and it can be increased when user click on addmeans that a page can contain numerous selectboxes now plz tell me how to get the values from that boxes and also how do i get know that how many select boxes were used by user</p> <p>i think an array should be used but i dont know how??</p> <pre><code> &lt;select name="select" id="select"&gt; &lt;option value="1"&gt;value1&lt;/option&gt; &lt;option value="2"&gt;value2&lt;/option&gt; &lt;option value="3"&gt;value2&lt;/option&gt; &lt;/select&gt; &lt;select name="select" id="select"&gt; &lt;option value="1"&gt;value1&lt;/option&gt; &lt;option value="2"&gt;value2&lt;/option&gt; &lt;option value="3"&gt;value2&lt;/option&gt; &lt;/select&gt; &lt;select name="select" id="select"&gt; &lt;option value="1"&gt;value1&lt;/option&gt; &lt;option value="2"&gt;value2&lt;/option&gt; &lt;option value="3"&gt;value3&lt;/option&gt; &lt;/select&gt; </code></pre> <p>like in above example how do i get know that how many selectboxes were used and how to get value of each box</p> <p>code for adding the new dropdown</p> <pre><code>function addRow() { var newRow = document.all("tblGrid").insertRow(); var oCell = newRow.insertCell(); oCell.innerHTML = "&lt;select name='select' id='select'&gt;&lt;option value='1'&gt;1&lt;/option&gt;&lt;option value='2'&gt;2&lt;/option&gt;&lt;option value='3'&gt;3&lt;/option&gt;&lt;/select&gt;"; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload