Hi All,

I'm new to the list and know more php than perl. I can read perl and understand some of it. One problem I seem to be facing is variable assignment and keeping the variables from script to script. In php this is fairly easy by assigning the global to the variable.

I'm not sure how to do this in perl

I have a affiliate program I am working with that I would like to make some changes to and correct a couple of bugs in

The program uses

use CGI qw (:standard);
$q = new CGI;

in every script

it also has

$referer = $q->referer();

in all the scripts

the $referer variable is the one that I think is causing me the problem.

To explain my situation as to execution the perl and html pages go like this

a cookie is set by a script with the affiliate ID. If the person who clicked the link has cookies enabled on their browser a cookie is set with the affiliate information. upon clicking the order it pulls cookie info if present or searches for a IP in the database if not (although this is commented out on purpose) the order page is a html form and the information then is transported to a different set of perl scripts to inform us of a order and it's details, then it pop up another html page to take the person to either paypal or our merchant processor. On completion they are returned to a cgi script where the commission is processed.

This is where we loose the $referer variable I think, maybe we've lost it earlier in the process. Can anyone point me to the docs that cover this or explain to this newbie how variables are kept and transfered between scripts especially if there are at least 2 or 3 html pages between the scripts. I thought about the HTML POST variables but don't think that it would still be present from one page to another to merchant processor and back.

Any help appreciated.

Thanks,

Charles Mattice

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to