Solved

Passing Data

Posted on 2003-11-24
7
223 Views
Last Modified: 2010-04-06
I have three drop down boxes that I want to pass information and display on to another form.  Can anyone point me in the direction of an example of this or explain the best way of doing it?

Thanks.
0
Comment
Question by:swilli6926
[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
7 Comments
 
LVL 1

Expert Comment

by:galathea00
ID: 9816514
What web scripting language do you want to use?
0
 
LVL 3

Expert Comment

by:mrh30
ID: 9817070
Using Perl and CGI it's fairly straightforwards.  Make sure the drop down boxes are within your <form> tags and then submit the form.  Providing each drop down has a different name, you can then access their values in the Perl script by calling something like:

$q->param('dropdownname')

If you want to display these values on the next form, you would typically have the Perl script read in your html file, then perform a RegExp swap on it.  So for example the source html file might contain the string:

DROPDOWNNAME

at the location you want to replace it.

The Perl is then:

my $text = $q->param('dropdownname');
$html =~ s/DROPDOWNNAME/$text/g;
0
 

Author Comment

by:swilli6926
ID: 9819718
I would like to have everything done in ASP.
0
 
LVL 3

Accepted Solution

by:
rkosai earned 50 total points
ID: 9828829
Using ASP, you would add the <select name='FormSelect1'> tag, then use the follwing code to get the parameters:

<% x = Request.Form(FormSelect1) %>

You once you have the value stored in a variable, you can print it to the page using:

<% Response.Write("My Passed Value is: " & x) %>
0
 
LVL 1

Expert Comment

by:lamdor
ID: 9841412
Why don't u refer some books..there are very basic questions..

Ny way above holds good..

tx.
0

Featured Post

Independent Software Vendors: 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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
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…

729 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