Kejser73 Posted March 10, 2007 Share Posted March 10, 2007 Hi there... Can anyone help me out PLEASE... I have this line... <a href='http://www.detekt.dk/sdf/funddatabase/displayimage.php?pos=-".$pid."'> It is a href, from a image showing in my menu... BUT.. but .. but! How the "heck" do i get the URL to open in its own window. I mean... do i use the : target='_blank' tag... and WHERE! ?? its JUST dont work for me! Nomatter WHERE i insert the tag, it fails and stires up my site Thanks ALOT for your help! Link to comment https://forums.phpfreaks.com/topic/42151-solved-open-link-in-new-window-fails/ Share on other sites More sharing options...
papaface Posted March 10, 2007 Share Posted March 10, 2007 This will work: echo '<A HREF="http://www.detekt.dk/sdf/funddatabase/displayimage.php?pos=-'.$pid.'" TARGET="_blank">a new window</A> If that doesnt work, its a problem with your browser. Link to comment https://forums.phpfreaks.com/topic/42151-solved-open-link-in-new-window-fails/#findComment-204480 Share on other sites More sharing options...
Kejser73 Posted March 10, 2007 Author Share Posted March 10, 2007 Thanks... but it dosent work... The full line looks like this : * if($sql -> db_Select_gen($qry)){ while($id = $sql -> db_Fetch()){ extract($id); $text.="<div style='text-align:center'><a href='http://www.detekt.dk/sdf/funddatabase/displayimage.php?pos=-".$pid."'><img src='http://www.detekt.dk/sdf/funddatabase/albums/".$filepath."thumb_".$filename."' style='border: 0;margin:2px;' alt='' />"; $text.="</a></div><br/>"; $text.="<div style='text-align:center'>$title<br>"; $text.="</a></div><br/>"; Any suggestions ? PLEASE Link to comment https://forums.phpfreaks.com/topic/42151-solved-open-link-in-new-window-fails/#findComment-204501 Share on other sites More sharing options...
papaface Posted March 10, 2007 Share Posted March 10, 2007 Its because you dont have the ending "< /a>" should be: if($sql -> db_Select_gen($qry)){ while($id = $sql -> db_Fetch()){ extract($id); $text.="<div style='text-align:center'><a href='http://www.detekt.dk/sdf/funddatabase/displayimage.php?pos=-".$pid."' TARGET="_blank"><img src='http://www.detekt.dk/sdf/funddatabase/albums/".$filepath."thumb_".$filename."' style='border: 0;margin:2px;' alt='' /></a>"; $text.="[/url]</div> "; $text.="<div style='text-align:center'>$title "; $text.="[/url]</div> "; Link to comment https://forums.phpfreaks.com/topic/42151-solved-open-link-in-new-window-fails/#findComment-204502 Share on other sites More sharing options...
Kejser73 Posted March 10, 2007 Author Share Posted March 10, 2007 Thanks alot! NOW its PERFECT! Thank you VERY VERY much.! Kind regards... a happy man! Christian K. Denmark Link to comment https://forums.phpfreaks.com/topic/42151-solved-open-link-in-new-window-fails/#findComment-204504 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.