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 Quote Link to comment 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] Quote Link to comment 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 :) Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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] Quote Link to comment 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 ;) Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
brown2005 Posted January 21, 2007 Author Share Posted January 21, 2007 thanks very much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.