Passing Data

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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What web scripting language do you want to use?
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:


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:


at the location you want to replace it.

The Perl is then:

my $text = $q->param('dropdownname');
$html =~ s/DROPDOWNNAME/$text/g;
swilli6926Author Commented:
I would like to have everything done in ASP.
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) %>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Why don't u refer some books..there are very basic questions..

Ny way above holds good..

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.