i want to have an iframe, which displays the page given as parameter in the url.
I’m using ASP.NET MVC4
so I wanna do something like this:
updated it… but still not right i think
<?php
if(!isset($_GET['link']){
$link = $_GET['link'];}
?>
<iframe name="inlineframe" src="<?php $link ?>" frameborder="0" scrolling="auto" width="500" height="180" marginwidth="5" marginheight="5" ></iframe>
but i can’t figure out the right code for this. can anyone help?
I also tried echoing php, but that doesnt seem to work for me.
The problem with your code snippet is this:
You’re calling the variable, but doing nothing with it
To write the variable in the src attribute, use echo:
You should also remove the ! in your if statement