Solved

How to pass a list value to another page

Posted on 2003-11-19
1
316 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
ID: 9778308
<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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

895 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

12 Experts available now in Live!

Get 1:1 Help Now