adding " target=_blank" in echo

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
kalp1200
Forum Newbie
Posts: 19
Joined: Tue Aug 26, 2008 8:57 pm

adding " target=_blank" in echo

Post by kalp1200 »

Hi, I would like the link to open in a new window, how do I include the target=_blank in this line, I keep getting parse error

echo "<td><a href=\"adddesktopinline-user.php?id=".$row['desktop_id']."\"> VIEW </a>";
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: adding " target=_blank" in echo

Post by papa »

Code: Select all

 
echo "<td><a href=\"adddesktopinline-user.php?id=".$row['desktop_id']."\" target=\"_blank\"> VIEW </a>";
 
andersmc
Forum Newbie
Posts: 1
Joined: Mon Dec 29, 2008 11:37 am

Re: adding " target=_blank" in echo

Post by andersmc »

Or use the single quote ' for internal quotation.
Post Reply