When I select Februar here and sends, selection returns to Januar.
I know why: no option is marked selected...
But can php get this right in an easy way?
<html><head><ti tle>Part of a bigger page</title></head>
<?php
$form ="
<form action=\"$_SERV ER[PHP_SELF]\" method=\"post\" >
<select name=obs_mnd>
<option value=\"Jan\">J anuar</option>
<option value=\"Feb\">F ebruar</option>
<option value=\"Des\">D esember</option>
</select>
<input type=\"submit\" name=\"submit\" value=\"Send\">
</form>
";
echo "$form"
?>
</body></html>
I know why: no option is marked selected...
But can php get this right in an easy way?
<html><head><ti tle>Part of a bigger page</title></head>
<?php
$form ="
<form action=\"$_SERV ER[PHP_SELF]\" method=\"post\" >
<select name=obs_mnd>
<option value=\"Jan\">J anuar</option>
<option value=\"Feb\">F ebruar</option>
<option value=\"Des\">D esember</option>
</select>
<input type=\"submit\" name=\"submit\" value=\"Send\">
</form>
";
echo "$form"
?>
</body></html>
Comment