Javascript help....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wreed
Forum Newbie
Posts: 12
Joined: Wed Dec 18, 2002 12:12 pm
Location: Butler, NJ
Contact:

Javascript help....

Post 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?


?>
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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>";
Post Reply