Target Blank PHP HTML -


i have line , want target blank open link in new window. tried adding but syntax error.

  $out .= "\t<li><a href=\"" . $content->geturl() . "\">" . $content . "</a></li>\n"; 

can please me?

thanks.

from understand of question. you've tried add target="_blank" while using double-quotes variable too. won't work. you'll have escape characters, or use singlequotes. this:

$out .= "\t<li><a target=\"_blank\"href=\"" . $content->geturl() . "\">" . $content . "</a></li>\n"; 

this work if $out defined, since you're using .= concatenating assignment operator, appends argument on right side argument on left side.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -