in my test page I have three links which assign a different web address to a variable called $link
.buttonpush {
height: 25px;
width: 200px;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #333;
border: 2px solid #CCC;
}
.butdiv {
position: absolute;
left: 20px;
top: 30px;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ift.tt/kkyg93">
<html xmlns="http://ift.tt/lH0Osb">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>index</title>
<link href="css/phptest.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="butdiv">
<div class="buttonpush"><a href="show.php
?link=http://ift.tt/mMnC4k">Button one</a></div>
<div class="buttonpush"><a href="show.php
?link=http://ift.tt/1bggdLL">Button two</a></div>
<div class="buttonpush"><a href="show.php
?link=http://ift.tt/1OYcoJn">Button three</a></div>
</div>
</body>
</html>
I need to make the result page display the required web site within the object tag
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ift.tt/kkyg93">
<html xmlns="http://ift.tt/lH0Osb">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>show</title>
</head>
<body>
<?php
$link = $_GET['link'];
?>
<object data="echo htmlspecialchars '$link';" width="1000" height="720">
<embed src="echo htmlspecialchars '$link';" width="1000" height="720" /> Error: Embedded data could not be displayed.
</object>
</body>
</html>
although the correct web address is passed to the show.php page..... it doesn't display the webpage being called? I've used a similar code to pass specific variable strings to a form before.... but I failed in my attempt to achieve this result!! Any help / advice would be greatly appreciated from a relative newbie Thank you
Aucun commentaire:
Enregistrer un commentaire