Page 1 of 1

Javascript help....

Posted: Tue Dec 24, 2002 7:54 am
by wreed
I have a echo command as follows

Code: Select all

echo "<tr><td bgColor=$color width=30%><a class='TeamLeadersContent'><b>${title[$i]}:</b></a></td><td class='verb10' bgColor=$color align=left>
<a href='javascript:popitup('playerinfo.php?id=${result[0]}')' target=_blank>${result[1]}</a></td><td bgColor=$color ><a class='TeamLeadersContent'>${result[2]}</td>";
The link shows up as javascript:popitup(in the new browser)....

I know i just have the quotes messed up, anyone able to help?


?>

Posted: Tue Dec 24, 2002 10:30 am
by mydimension
change it to this:

Code: Select all

echo "<tr><td bgColor=$color width=30%><a class='TeamLeadersContent'><b>${title[$i]}:</b></a></td><td class='verb10' bgColor=$color align=left>
<a href="javascript:popitup('playerinfo.php?id=${result[0]}')" target=_blank>${result[1]}</a></td><td bgColor=$color ><a class='TeamLeadersContent'>${result[2]}</td>";