1 (edited by netphreak 2007-02-12 21:51)

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 smile

Re: Submit button jailed to dropdown!

close your tags young man big_smile

Re: Submit button jailed to dropdown!

Oh, ouch! Missing </select> there yikes

This must be the most embarrassing first post I've ever done - anywhere! I'm tired, yes...

Re: Submit button jailed to dropdown!

hehe, we've all been there.