HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

collect data
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> Others
View previous topic :: View next topic  
Author Message
sher_amf



Joined: 19 Dec 2007
Posts: 18

Posted: Thu Jan 17, 2008 9:13 pm     collect data  

how do you collect data from a drop down menu?
like for textfield there is a textfield name but for dropdown its only a option value..

<option value="Jan">January</option>

<input type="text" name="stock" />
kanenas



Joined: 14 Dec 2004
Posts: 341

Posted: Mon Mar 03, 2008 11:36 pm     Read the tutorials  

If you look in the tutorial section on the option element you'll find that option elements are useful when made children of select elements. The select element is named (i.e. has a name attribute) and will be used as any other form element to collect data.
Code: <select name='month'>
  <option value="0">January</option>
  <option value="1">February</option>
  ...
</select>
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> Others
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group