Welcome to WebmasterWorld Guest from 54.167.0.111

Forum Moderators: incrediBILL

Message Too Old, No Replies

Select tag posts value

Which one is sent?

     

Snookered

5:52 am on Aug 20, 2004 (gmt 0)

10+ Year Member



Hi,

If I have a select list in a form like:


<SELECT name="type">
<OPTION value="frd" selected>Ford</OPTION>
<OPTION value="merc">Mercedes</OPTION>
<OPTION value="vlv">Volvo</OPTION>
</SELECT>

When the form is posted which does the recipient get, the 'value' or the 'text'?

Thanks

Krapulator

6:46 am on Aug 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The Value

Snookered

1:17 am on Aug 23, 2004 (gmt 0)

10+ Year Member



Thanks. What happens if the value is absent, will it default to the text?

Krapulator

1:46 am on Aug 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Correctamondo!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month