How to pass a list value to another page

Hi

I would like to know how to pass the value a user has selected from a listbox to another html page.  Does anyone have any code examples?
jhazardAsked:
Who is Participating?
 
dorwardConnect With a Mentor Commented:
<form action="another-html-page" method="GET">
<fieldset>
<legend>Listbox form</legend>
<select name="listbox">
<option>Value</option>
<option>Different Value</option>
</select>
<input type="submit">
</fieldset>
</form>

Select something, click the submit button, and the value will be passed to another-html-page.

How you access the value on that page depends on which language you use to do it. HTML can't do it, JavaScript isn't dependable <http://www.exotic-isle.com/tutorials/javascript/javascript_201.htm>, PHP provides it as $_GET['listbox'], and other languages have their own techniques.
0
All Courses

From novice to tech pro — start learning today.