Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending form values to a program

Status
Not open for further replies.

vacklin

Programmer
Nov 13, 2001
22
US
Hello,

I posted this problem a while back but I still don't have the issue solved. I was wondering if any one of you PERL experts might be able to help. I would REALLY appreciate it!

I have a form that is processed by a perl script. The script sends 2 form values to a text file, sends an email to the recipient then redirects to another page. The page that it redirects to is a program. The program needs 2 of the form values sent to it.

I am trying to get the script to send 2 form values to the program on redirect. The script is Matt's famous formmail.pl with some added features for updating a text file.

My programmer added this line to the perl script before calling return_html but after &parse_form is called:

$Config{'redirect'}="
It still doesn't work. It does redirect to the correct page but the prospect_name and prospect_id values are empty.

I have posted the full perl script online here:


The script is in text format so anyone can take a look at it.

I have tried everything to get this to work. Is there some other code that needs to be added to the perl script? If so, where would I add it?

Thank you!!!!!!

Vickie
 
I would guess that $Form{'prospect_id_value'} and $Form{'prospect_name_value'} are not using the exact name of the form elements whose data you're trying to get. Is there something in your form called 'prospect_id_value'? Or is it simply 'prospect_id'? Try $Form{'prospect_id'} and $Form{'prospect_name'} instead. Again, this is just a guess as I've never seen the formmail script before now.

 
Philote,

Thank you for your help. I can't believe that was the problem. My programmer came up with the same answer and already fixed it. I guess he and I were both concentrating so hard on a solution that we overlooked the simple fix.

I am not a programmer and he is more of a PHP expert.

If he had not already found a solution, your answer would have worked so THANK YOU very much.

Vickie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top