First off, Hi all. I've recently moved to PHP after a few months on C#, and I feel like I'm right back in year 1 at school. I'm working my way through a few tutes, and one of them has a (kind of) 'now it's your turn' at the end...
On the whole I've been doing OK, but one of the exercises wants me to change an 'open browser' window command to a simple link-to-page. I understand the principle but the syntax is killing me.
I haven't just come here to cheat, I've spent hours looking at various docs and guides, but I can't seem to crack this basic problem.
The current code is:
$eventwin = 'onclick="window.open(\'index.php?option=someurl&id='.$item->id.'\', \'win2\', \'width=800,height=400,top=100,left=100,scrollbars=1\')" ';
I'd ideally like to create the link using 'onclick' rather than use a standard link, can anyone help? Please?