homepage Welcome to WebmasterWorld Guest from 54.243.12.156
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Select tag posts value
Which one is sent?
Snookered




msg:603106
 5:52 am on Aug 20, 2004 (gmt 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

 

Krapulator




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

The Value

Snookered




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

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

Krapulator




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

Correctamondo!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved