Solved

How to pass a list value to another page

Posted on 2003-11-19
1
338 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Output to HTML in powershell 3 39
html / css issue / div issue. stuck, help needed 2 25
ASP get fieds value 2 22
isNaN issue on the Table input text 2 10
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

730 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