Multiple Selection List
Posted: Mon Aug 30, 2004 3:32 pm
I have a form with a multiple selectable list in it. When the page posts to another php page, it only shows that the last selection of the list is passing. Here is my code:
And the dump.php file:
Any ideas?
Code: Select all
<form name="form" method="post" action="dump.php" target"_post">
<p>Select table(s) to export:<br>
<select name="tables" size="6" multiple="multiple">
<option value="con_news">con_news</option>
<option value="user_info">user_info</option>
<option value="var_econtrolversions">var_econtrolversions</option>
<option value="var_level">var_level</option>
</select>
<br>
<br>
dump format:</p>
<table width="200">
<tr>
<td><label>
<input type="radio" name="format" value="SQL">
SQL</label>
</td>
</tr>
<tr>
<td><label>
<input type="radio" name="format" value="Excel CSV">
Ms Excel</label>
</td>
</tr>
</table>
<br>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>Code: Select all
$tables = $_POST['tables'];
$format = $_POST['format'];
echo $tables;
echo $format;
exit();