Re: select tag doesn't update post or get
| From: | Jochem Maas | Date: | Wed, 09 Aug 2006 01:58:46 +0000 |
| Subject: | Re: select tag doesn't update post or get | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240351@lists.php.net to get a copy of this message | ||
Roel Dillen wrote:
> 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.
sounds like you have another field also named 'nameOfSelectTag', probably
near the bottom of your form.
>
> 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
>