Topic: Submit button jailed to dropdown!
echo "<form name=\"myform\" action=\"main.php\" method=\"GET\">";
echo "Select: <select name=\"id\"><option selected value=\"$id\">$myvar</option>";
$query = "SELECT * FROM mytable ORDER BY id";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)) {
echo "<option value=\"$row[id]\">$row[name]</option>";
}
echo "Whatever I enter here is removed!";
echo "<p><input type=\"submit\" value=\"Submit!\"></p>";
I must be really really tired, but I can not understand why I can not separate the submit putton from the dropdown! Is it a php issue (since I use "echo" to get the output), a nifty replace routine in punbb, or me? Thanks, great forum and great product. And by the way - hello, I'm new here