Advertisement

06.04.2008 at 12:40PM PDT, ID: 23458089
[x]
Attachment Details

Perl CGI print statement

Asked by pda4me in CGI Scripting, Unix Systems Programming, Perl Programming Language

I currently have the following print statement in a cgi script working fine:

if (!$Product_Name){
$Product_Name=" ";
print "<td><A href=\"parts.cgi?RecordNumber=$loopsaround\">$Product_Name</a></td>\n";}
else{
print "<td><A href=\"parts.cgi?RecordNumber=$loopsaround\">$Product_Name</a></td>\n";}

How do I incorporate the following into the <a href> as an onclick event?  When I try to put it in it errors out I am assuming due to some sort of issue with the syntax?

<a href="#" onClick="opennewsletter('parts.cgi?RecordNumber=$loopsaround'); return false">$Product_Name</a>Start Free Trial
[+][-]06.04.2008 at 12:44PM PDT, ID: 21713452

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: CGI Scripting, Unix Systems Programming, Perl Programming Language
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.04.2008 at 12:46PM PDT, ID: 21713463

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628