Alienware Posted January 6, 2009 Share Posted January 6, 2009 Has anyone got any idea hot to get this link to open in the main frame?- $name = "<a onMouseOver=\"return overlib('Playername: ".$user."', CENTER);\" onMouseOut=\"nd();\" href=\"profile.php?player=".$user."\" style=\"\">".$play."</a>"; echo $name." ~ "; the frame i want it to open in is called "main"... at the moment it opens up in the frame that the link is in. Link to comment https://forums.phpfreaks.com/topic/139707-php-open-link/ Share on other sites More sharing options...
bluesoul Posted January 6, 2009 Share Posted January 6, 2009 If you're using frames you need to add target="Name" where name is the frame you want it to display in. Link to comment https://forums.phpfreaks.com/topic/139707-php-open-link/#findComment-730957 Share on other sites More sharing options...
Alienware Posted January 6, 2009 Author Share Posted January 6, 2009 it is called "main" when i tried that before it just came up with an error Link to comment https://forums.phpfreaks.com/topic/139707-php-open-link/#findComment-730959 Share on other sites More sharing options...
Alienware Posted January 6, 2009 Author Share Posted January 6, 2009 anyone? Link to comment https://forums.phpfreaks.com/topic/139707-php-open-link/#findComment-730992 Share on other sites More sharing options...
Alienware Posted January 6, 2009 Author Share Posted January 6, 2009 bump Link to comment https://forums.phpfreaks.com/topic/139707-php-open-link/#findComment-731041 Share on other sites More sharing options...
Alienware Posted January 7, 2009 Author Share Posted January 7, 2009 bump Link to comment https://forums.phpfreaks.com/topic/139707-php-open-link/#findComment-731438 Share on other sites More sharing options...
DarkSuperHero Posted January 7, 2009 Share Posted January 7, 2009 <?php $name = "<a onMouseOver=\"return overlib('Playername: ".$user."', CENTER);\" onMouseOut=\"nd();\" href=\"profile.php?player=".$user."\" target=\"main\" style=\"\">".$play."</a>"; echo $name." ~ "; that doesnt work ? Link to comment https://forums.phpfreaks.com/topic/139707-php-open-link/#findComment-731817 Share on other sites More sharing options...
Alienware Posted January 7, 2009 Author Share Posted January 7, 2009 That works, thankyou <?php $name = "<a onMouseOver=\"return overlib('Playername: ".$user."', CENTER);\" onMouseOut=\"nd();\" href=\"profile.php?player=".$user."\" target=\"main\" style=\"\">".$play."</a>"; echo $name." ~ "; that doesnt work ? Link to comment https://forums.phpfreaks.com/topic/139707-php-open-link/#findComment-731969 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.