Hi,
<select name="test">
<option>1</option>
<option>2</option>
</select>
wenn ich hier z.B. 2 auswähle und das formular dann absende, sollte doch (im folgenden php-script) $test == 2 sein, oder?
So sollte es sein - wenn kein value-Attribut bei option vorhanden ist, sollte der Inhalt des Elements als Wert von value verwendet werden
(Zitat: This attribute specifies the initial value of the control. If this attribute is not set, the initial value is set to the contents of the OPTION element.)
bei mir isses aber 1...
Welcher Browser, welche Version?
cu,
Andreas
--
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/