Oh, ouch! Missing </select> there
This must be the most embarrassing first post I've ever done - anywhere! I'm tired, yes...
You are not logged in. Please login or register.
PunBB Forums → Posts by netphreak
Pages 1
Oh, ouch! Missing </select> there
This must be the most embarrassing first post I've ever done - anywhere! I'm tired, yes...
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
Pages 1
PunBB Forums → Posts by netphreak
Powered by PunBB, supported by Informer Technologies, Inc.