Re: spot the mistake

From: Date: Sun, 12 Nov 2006 19:36:51 +0000
Subject: Re: spot the mistake
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-244530@lists.php.net to get a copy of this message
On 11/12/06, Ross <ross@aztechost.com> wrote:
echo ('<a href="#" onclick="window.open(\'news/old_news_list.php?month=$j&amp;year='.$i.'\',\'\',\'width=700,height=500\'); return false \" >$thisMonth</a>');
Just remove any question on what is wrong: $thisUrl = "news/old_news_list.php?month=$j&amp;year=$i"; ?> <a href="<?php echo $thisUrl;?>" onClick="window.open('<?php echo $thisUrl;>','','width=700,height=500'); return false;"
$thisMonth</a> <?php
- No wierd escaping stuff. (.\',\'\',\''.'\',') - Clear on what you are doing. - javascript broke? it will still work
I am trying to get this to open in a popup however it doess not open and I cannot work out why. Must be a syntax arror as the page displays ok.
if it was a syntax error, the page would not display. curt.

« previous php.general (#244530) next »