Forum Moderators: coopster

Message Too Old, No Replies

Selecting only one word from Drop Down

         

sfast

6:53 pm on Oct 26, 2007 (gmt 0)

10+ Year Member



I have a form where there is a drop down field accessing data from the database.

The values are -

for eg1
for eg2
for eg3
-----------------------------

WHen I select "for eg1", it shows "for" and does not take eg1.

This is the way I am retriving the value.

if (($_GET['app_applyfor'] ) == '')
$applyforError = "Invalid or missing information" ;
else
$app_applyfor = $_GET['app_applyfor'];

What is causing this? Why does it not take both the words?

d40sithui

9:40 pm on Oct 26, 2007 (gmt 0)

10+ Year Member



i think you should post your form.
i had a probem like this before, i forgot how i got over it. it is a very simple coding error from that i remember.

masidani

10:49 am on Oct 27, 2007 (gmt 0)

10+ Year Member



Do the values have quotes around them in the HTML? The value attributes in the HTML should look like

value='for eg1'

That you only get the first word being returned suggests you might not.