getting this to open in a popup window

echo("\t\t\t\t<a href=\"#\"\'news/old_news_list.php?month=$j&amp;year=$i,'\',\''width=700,height=500\'\)>$thisMonth</a><br />");

this does not open up in the 700 x 500 window it is meant to.
Who is Participating?
RoonaanConnect With a Mentor Commented:
echo "\t\t\t\t<a href=\"#\" onclick=\"'news/old_news_list.php?month=$j&amp;year=$i','','width=700,height=500');return false;\">$thisMonth</a><br />";

Ivo StoykovCommented:
Hi roscoeh23,

> echo("\t\t\t\t<a href=\"#\"\'news/old_news_list.php?month=$j&amp;year=$i,'\',\''width=700,height=500\'\)>$thisMonth</a><br
> />");

another backslash missed
try this:
echo("\t\t\t\t<a href=\"#\"\'news/old_news_list.php?month=$j&amp;year=$i,\'\',\''width=700,height=500\'\)>$thisMonth</a><br />");


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.