I’m making a PHP Drop down inside a form to view data from a table in my database.
It shows the data correct but I dont get any output in my form action file when I submit.
It doesn’t matter wich one of the outputs from the database i choose, I still get no output. It’s just blank when I try to echo the output.
So how can I get the selected option in the drop down to some sort of $blabla?
Thanks
Here the code:
<SELECT NAME="char">
<option value="">Choose</option>
<?php
$qw1 = $_SESSION['SESS_MEMBER_ID'];
$sql="SELECT name FROM characters WHERE account='$qw1'";
$result=mysql_query($sql);
$options="";
while ($row=mysql_fetch_array($result)) {
$thing=$row["name"];
echo "<OPTION VALUE=$id>$thing</option>";
}
?>
</SELECT>
You do not select
idfield: