Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8095155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:01:40+00:00 2026-06-05T21:01:40+00:00

i want to have an iframe, which displays the page given as parameter in

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:01:42+00:00Added an answer on June 5, 2026 at 9:01 pm

    The problem with your code snippet is this:

    src="<?php $link ?>"
    

    You’re calling the variable, but doing nothing with it

    To write the variable in the src attribute, use echo:

    src="<?php echo $link ?>"
    

    You should also remove the ! in your if statement

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page which displays a different website (say www.cnn.com) in an iframe.
i have html page in which i am using iframe and calling antoher page
I have an ASP.NET 3.5 intranet website which has a default page with a
Here I have created a website in c#.net and I want the page which
I have an iframe in my page and I want to display the content
I have an iframe embedded inside a fan page of FB, and I want
I have a page that contains an iframe that gets loaded using Javascript: index.html
I have a JSP page which includes an iframe , Iframe contains the image
On the webpage I have iframe, in which I display some content. I want
I have built a page which has an iframe in it. I also have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.