Jump to content

[SOLVED] help with target= _blank in call


circpros

Recommended Posts

I'm trying to get this bit of code to call as it currently does, but to open in a new window.

 

{

$comment_link = "{$forum_folder}viewtopic.php?t={$topics[$i]['topic_id']}";

}

 

But I can't figure out where to put the Target="_blank". I keep trying, but everytime I get parse errors..... am I trying something that won't work here?

 

TIA

Link to comment
https://forums.phpfreaks.com/topic/110335-solved-help-with-target-_blank-in-call/
Share on other sites

oops.... I've got to many snippets on the clipboard.

 

<a href=\"{$comment_link}\">Comments {$topics[$i]['topic_replies']}</a>

 

There is the section I wanted.....

 

 

WHen I try it like this:

 

<a href=\"{$comment_link}\" Target="_blank">Comments {$topics[$i]['topic_replies']}</a>

 

I get this:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/xxxxx/public_html/forum1/topic_look.php on line 37

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.