Solved

redirect form data to another form

Posted on 1998-05-11
7
174 Views
Last Modified: 2013-12-25
Hi, I have a form that receives data that I would like to forward to another form, but have no idea how to do so...I thought it would be possible to use a Perl script to do it, but I have no idea how to.  Any help would be appreciated..
0
Comment
Question by:coleslau
[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 2

Expert Comment

by:alexbik
ID: 1828348
Hi,

You can make your perl script read the data, and then print the following to stdout:

Location: http://some.site.com/cgi-bin/script.cgi?var1=value1&var2=value2

Note that the var names and values need to be URL encoded. Since you are getting this data from a form, this is already the case. Make sure that you use a get_input routine that does _NOT_ decode the data, or you will have to encode it again yourself.

Alex.
0
 

Author Comment

by:coleslau
ID: 1828349
Hi Alex, I'm not sure if that will work because the form needs to be posted by method POST so the variables aren't passed on the query_path..

Steve
0
 
LVL 2

Accepted Solution

by:
alexbik earned 100 total points
ID: 1828350
Hi,

Are you absolutely sure about this? Most get_input routines accept data sent to them by both the GET and POST method. Even if the author of the site uses POST, this doesn't mean it won't work using GET..

If it doesn't, please let me know. I'll try to figure something out..

Alex.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 7

Expert Comment

by:faster
ID: 1828351
If the other form script is on the same server as the first, you may also be able to invoke it directly.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1828352
I was under the impression that the browser saved the variables somewhere in the HTTP header and that I would have to send the POST request myself too (like faster said), I'll try the GET method this weekend...
0
 

Author Comment

by:coleslau
ID: 1828353
Depending on what the next form is doing this might help.

You could try to make the perl script write the other form (so no redirect), but this only works when the other form is yours too. Parse the form-data from form 1, and write them as (hidden) variables into form 2.




0
 
LVL 28

Expert Comment

by:sybe
ID: 1828354
Sorry...I just realised I hadn't graded the answer.. =)
thanks again
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Disk Ram Peak 1 54
Using a hta file with MSSQL agent to schedule a script job 4 49
Permission on folders 6 22
Hta File displays dynamic File names 4 46
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 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