Solved

How to pass a list value to another page

Posted on 2003-11-19
1
305 Views
Last Modified: 2010-04-09
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?
0
Comment
Question by:jhazard
1 Comment
 
LVL 17

Accepted Solution

by:
dorward earned 50 total points
Comment Utility
<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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now