?
Solved

How to pass a list value to another page

Posted on 2003-11-19
1
Medium Priority
?
348 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 200 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

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.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

752 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