Solved

Passing Data

Posted on 2003-11-24
7
217 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
Comment Utility
What web scripting language do you want to use?
0
 
LVL 3

Expert Comment

by:mrh30
Comment Utility
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
Comment Utility
I would like to have everything done in ASP.
0
 
LVL 3

Accepted Solution

by:
rkosai earned 50 total points
Comment Utility
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
Comment Utility
Why don't u refer some books..there are very basic questions..

Ny way above holds good..

tx.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Format results with PHP 3 61
Tech Writing Terminology - Pane or Panel? 8 67
Problem to run file 9 90
JQuery tracking event. 3 38
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

763 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

7 Experts available now in Live!

Get 1:1 Help Now