Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML SELECT TAG

Status
Not open for further replies.

felix001

Technical User
Nov 15, 2008
102
GB
Im currently writing a HTML/CGI page but wondered how i get the value from the select tag. I have a drop down box which i want to get the value from when the user clicks so i get get the script to go off and do something else...

Can any one help... ??

A+, N+, CCNA, CCSA, SNPA
- Keeping You in the Know
 
Hi

The HTML part of this is is just regular HTML :
[ul]
[li]there must be a [tt]form[/tt][/li]
[li]the [tt]form[/tt] must have [tt]action[/tt][/li]
[li]the [tt]form[/tt] must contain the [tt]select[/tt][/li]
[li]the [tt]select[/tt] must have [tt]name[/tt][/li]
[li]the [tt]select[/tt] must contain [tt]option[/tt][/li]
[li]the [tt]option[/tt] must have [tt]value[/tt][/li]
[/ul]
Then you submit the [tt]form[/tt] and the CGI specified in te [tt]action[/tt] will receive the selection made by the visitor as [tt]select_name=selected_option_value[/tt] pair. From this point forward is CGI question for forum452.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top