Twango Posted March 19, 2011 Share Posted March 19, 2011 I have a problem...I have a table,That echos a link, that goes to a page that deletes the account selected when the link is clicked..If i wanted that link to open in say...an iFrame, how would i do that?Thanks Link to comment Share on other sites More sharing options...
chokk Posted March 20, 2011 Share Posted March 20, 2011 Make the link target the current page and pass a variable to the URL like so: index.php?link=pagetodisplayThen set up some PHP code to display an iFrame in the event something is passed through the link variable in the URL. <?phpif(isset($_GET['link'])){ $page_to_display = $_GET['link']; echo "<iframe src=\"" . $page_to_display . "\" width=\"100%\" height=\"300\"><p>Your browser does not support iframes.</p></iframe>";}?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.