how i need it <a href="http://www.mysite.com" title="mysite" target="_blank">mysite</a> Code (markup): the code im trying to edit if ($realurl ==1) { $websitelink = "<a href='".$websiteurl."'>".$websitename."</a>"; } else { $websitelink = "<a href='".$siteurl."linkout.php?id=".$linkid."'>".$websitename."</a>"; } $content = $content.$websitelink.""; Code (markup):
I think, although I really don't know what you're doing with "linkout.php?=\"" , so I might be totally wrong? $websitelink ="<a href=\""; if ($realurl ==1) { $websitelink .= $websiteurl; } else { $websitelink .= $siteurl . "linkout.php?id=\"" . $linkid; } $websitelink .= "\">" . $websitename."</a>"; PHP:
First of all, an anchor cannot have a title. Second of all, the target attribute has no business in any website written in this century.