Solved

Passing Data

Posted on 2003-11-24
7
218 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
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

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

Title # Comments Views Activity
website file permissions 4 65
wordpress limitations 4 104
Problem to file 3 67
Adding a hidden div to each row in a table 6 61
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

911 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

18 Experts available now in Live!

Get 1:1 Help Now