brown2005 Posted January 21, 2007 Share Posted January 21, 2007 can anyone please tell me how i can make the following in a popup window.<a href='index.php?id=$id'>View</a>thanks in advance Link to comment https://forums.phpfreaks.com/topic/35088-popup-within-php/ Share on other sites More sharing options...
trq Posted January 21, 2007 Share Posted January 21, 2007 [code]<a href='index.php?id=$id' target='_blank'>View</a>[/code] Link to comment https://forums.phpfreaks.com/topic/35088-popup-within-php/#findComment-165657 Share on other sites More sharing options...
SharkBait Posted January 21, 2007 Share Posted January 21, 2007 Technically that doesn't pop up but does open a new browser window ;)Javascript could be used to create a 'popup' window :) Link to comment https://forums.phpfreaks.com/topic/35088-popup-within-php/#findComment-165668 Share on other sites More sharing options...
smc Posted January 21, 2007 Share Posted January 21, 2007 Javascript popup window generator: http://javascript.internet.com/generators/popup-window.htmlEnjoy :P Link to comment https://forums.phpfreaks.com/topic/35088-popup-within-php/#findComment-165670 Share on other sites More sharing options...
brown2005 Posted January 21, 2007 Author Share Posted January 21, 2007 thanks for that..how can i write<a href="javascript:popUp('http://www.mysite.co.uk/files/profile.php?id=$id')" class="red_bold_none">Profile</a>in php please? Link to comment https://forums.phpfreaks.com/topic/35088-popup-within-php/#findComment-165880 Share on other sites More sharing options...
Jessica Posted January 21, 2007 Share Posted January 21, 2007 [code]<?phpprint '<a href="javascript:popUp(\'http://www.mysite.co.uk/files/profile.php?id='.$id.'\')" class="red_bold_none">Profile[/url]';//Orprint "<a href=\"javascript:popUp('http://www.mysite.co.uk/files/profile.php?id=$id')\" class=\"red_bold_none\">Profile[/url]";//OR?><a href="javascript:popUp('http://www.mysite.co.uk/files/profile.php?id=<?=$id?>')" class="red_bold_none">Profile[/url]<??>[/code] Link to comment https://forums.phpfreaks.com/topic/35088-popup-within-php/#findComment-165882 Share on other sites More sharing options...
redbullmarky Posted January 21, 2007 Share Posted January 21, 2007 [code]<?phpecho '<a href="javascript:popUp(\'http://www.mysite.co.uk/files/profile.php?id=' . $id . '\')" class="red_bold_none">Profile</a>';?>[/code][b]edit:[/b] pipped to the post ;) Link to comment https://forums.phpfreaks.com/topic/35088-popup-within-php/#findComment-165883 Share on other sites More sharing options...
trq Posted January 21, 2007 Share Posted January 21, 2007 [code=php:0]echo "<a href=\"javascript:popUp('http://www.mysite.co.uk/files/profile.php?id=$id')\" class=\"red_bold_none\">Profile</a>";[/code] Link to comment https://forums.phpfreaks.com/topic/35088-popup-within-php/#findComment-165884 Share on other sites More sharing options...
brown2005 Posted January 21, 2007 Author Share Posted January 21, 2007 thanks very much Link to comment https://forums.phpfreaks.com/topic/35088-popup-within-php/#findComment-165898 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.