Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: incrediBILL

Message Too Old, No Replies

Select tag posts value

Which one is sent?

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

New User

10+ Year Member

joined:Feb 11, 2004
posts:38
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 4, 2002
posts:666
votes: 0


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

New User

10+ Year Member

joined:Feb 11, 2004
posts:38
votes: 0


Thanks. What happens if the value is absent, will it default to the text?
1:46 am on Aug 23, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 4, 2002
posts:666
votes: 0


Correctamondo!