Redirect from Posted form values

Posted on 1998-09-25
Last Modified: 2010-03-05
I need a redirecting script that redirects to one of various .cgi scripts (named like, or second.cgi, etc...) depending on the customer id value contained in the form below which will be posted to the script. Below is the posted form.....

<form method="POST" action="">

<input type="hidden" name="INVOICE" value="1038">

<input type="hidden" name="DESCRIPTION" value="">

<input type="hidden" name="AMOUNT" value="$1.00">

<input type="hidden" name="CUSTID" value="thirtyrec">

<input type="hidden" name="TYPE" value="NA">

<input type="hidden" name="METHOD" value="MasterCard">

<input type="hidden" name="NAME" value="vern keller">

<input type="hidden" name="ADDRESS" value=" fisher rd">

<input type="hidden" name="CITY" value="somecity">

<input type="hidden" name="STATE" value="ca">

<input type="hidden" name="ZIP" value="12345">

<input type="hidden" name="COUNTRY" value="USA">

<input type="hidden" name="PHONE" value="541-123-4567">

<input type="hidden" name="FAX" value="none">

<input type="hidden" name="EMAIL" value="">

<input type="submit" value="Continue">


Thanx for any help. 65 points is all I got.......
Question by:vernk
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
  • 4
  • 2

Author Comment

ID: 1205011
Edited text of question

Author Comment

ID: 1205012
Edited text of question

Author Comment

ID: 1205013
Edited text of question
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 84

Expert Comment

ID: 1205014
use CGI qw/:standard/;
print redirect(''.(${{
thirtyrec =>      'first.cgi',
second      =>      'second.cgi',

Author Comment

ID: 1205015
works great....thanx do I give you the points?
LVL 84

Accepted Solution

ozo earned 60 total points
ID: 1205016
use CGI qw/:standard/;
print redirect(''.(${{
thirtyrec => 'first.cgi',
second => 'second.cgi',

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…

739 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