How do I make a select-tag autofill with a variable obtained from the "commandline" e.g. http://myserver.com/mypage.php?var1=hello should make a select-dropdown with the hello option selected.
if i understand your question correctly, i would do it like this
echo "<select name='whatever'>"; echo "<option value='hello'"; if ($var1 == "hello") { echo " selected"; } echo ">Hello</option>"; echo "</select>";