Forum Moderators: DixonJones
I am using Freeware Perl code for a simple script called CLICK.CGI to track clicks. The link looks like this:
[domain.com...] link...
It did not have code for completing the link after the stats are recorded. I added the following code so that the link is printed on the screen. The code html code then tries to start the new link using JAVA. Here is the PERL code that I used:
$click_link = '<a href="' . $click_link . '">' . $click_link . '</a>';
print "Content-type: text/html\n\n";
print '<script language="JavaScript">';
print "setTimeout('".$java_link."', 0)";
print "</script>";
print "<br<br>Connecting to:<br><br>";
print ' <a href="',$link,'"><b>',$link,'</b></a><br><br>';
print 'If your browser is not JAVA enabled, please click on link above.';
This code works well, but is clumsy, to say the least. I haven't been able to find a way to start the new "clicked on link" from withing the PERL code. Is it possible to start a new process from PERL. I have tried <!--#exec and can't get it to work with all of the different browsers.
IS THERE WAY TO DO IT WITHOUT USING PERL?
Thanks, GunnerM