Hi all, this is probably a really 'dumb one'.
I have an event with an attached 'onclick' action, but I keep getting T_String and T_Variable errors, so my syntax is obviously way off. Here's the code:
$eventprnt = 'onclick="window.location.href ='$http://www.google.com"';
I'm actually trying to hack a Joomla component to suit my requirements a little better, the code currently opens a window (which I don't want) and looks like this:
$eventprnt = 'onclick="window.location(\'index.php?option=com_coupon&view=coupons&task=print_coupon&id='.$item->id.'\')" ';
I'm sure it's an easy fix, but to me it's all Chinese.
Any help you can give will be greatly appreciated
Mark