?
Solved

Passing Data

Posted on 2003-11-24
7
Medium Priority
?
225 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 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

800 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