select tag doesn't update post or get

From: Date: Wed, 09 Aug 2006 00:34:28 +0000
Subject: select tag doesn't update post or get
Groups: php.general 
Request: Send a blank email to php-general+get-240348@lists.php.net to get a copy of this message
I have a xhtml form with a <select> with options if I click submit the processing page is loaded and the result of the form is shown. The option given to the processing page however is always the same: the first in the list. It doesn't matter what I select in the drop down menu, the value of $_POST['nameOfSelectTag'] (or get for that matter) never differs from the first value in the drop down list. I don't use a default selected value because the <option> tag values are dependent on the contents of a certain table in my database. The weird thing is that in get mode the field nameOfSelectTag does take the right value in the adress bar but that doesn't get translated into the correct value in $_GET so i am thinking the same happens in $_POST. Ideas anyone Roel ---------- Scarlet Club: Iedereen wint! Indien u nu klant wordt van Scarlet via een bestaande Scarlet klant kunnen jullie beide cadeaucheques ontvangen ter waarde van 50 euro! Bezoek snel http://www.scarletclub.be

« previous php.general (#240348) next »