Redirect from Posted form values

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.......
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.

vernkAuthor Commented:
Edited text of question
vernkAuthor Commented:
Edited text of question
vernkAuthor Commented:
Edited text of question
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

use CGI qw/:standard/;
print redirect(''.(${{
thirtyrec =>      'first.cgi',
second      =>      'second.cgi',
vernkAuthor Commented:
works great....thanx do I give you the points?
use CGI qw/:standard/;
print redirect(''.(${{
thirtyrec => 'first.cgi',
second => 'second.cgi',

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
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

From novice to tech pro — start learning today.