I am trying to pass a variable in the redirect string, ie abc123, where the url value is in a hash that i want to extract, and then redirect to the corresponding url, but i am unsure as how to pull this value from the hash to pass it on .......
Jan 22, 2001, 9:50 AM
Novice (23 posts)
Jan 22, 2001, 9:50 AM
Post #5 of 8
Views: 5205
this is the code that i used to make it work, turned out to be easier than i thought ... heh heh
*********** hash ****************
%goto_values = (
abc123_01 => "http://www.xxx.com/page1.html",
abc123_02 => "http://www.xxx.com/page2.html",
abc123_survey => "http://www.xxx.com/emailers/link.html"
);
************* end hash **************
$link = $goto_values{$fields{'link'}};
print "Content-type: text/html\n";
print ("Location: $link\n\n");
*********** hash ****************
%goto_values = (
abc123_01 => "http://www.xxx.com/page1.html",
abc123_02 => "http://www.xxx.com/page2.html",
abc123_survey => "http://www.xxx.com/emailers/link.html"
);
************* end hash **************
$link = $goto_values{$fields{'link'}};
print "Content-type: text/html\n";
print ("Location: $link\n\n");