PHP Save Selected Options From Multiple Drop Downs To An Array
I have the following code:
Solution 1:
Do you mean
<?php
var_dump($_POST);
?>
<form method='post'>
<select id='rq1' class='business' name='q1[]'>
<option value='1'>1</option>
<option value='2'>2</option>
</select>
<select id='rq2' class='business' name='q1[]'>
<option value='1'>1</option>
<option value='2'>2</option>
</select>
<select id='rq3' class='business' name='q1[]'>
<option value='1'>1</option>
<option value='2'>2</option>
</select>
<input type='submit'>
</form>
When you submit the form, you will get data in Array.
Post a Comment for "PHP Save Selected Options From Multiple Drop Downs To An Array"