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 8208591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:25:35+00:00 2026-06-07T09:25:35+00:00

I have a HTML file http://mydomain.com/page1.html : <!doctype html> <html> <iframe src=http://mydomain.com/page2.php></iframe> </html> In

  • 0

I have a HTML file http://mydomain.com/page1.html:

<!doctype html>
<html>
  <iframe src="http://mydomain.com/page2.php"></iframe>
</html>

In page2.php, I would like to get the url of the “container page”, which in this case is the string page1.html.

Is there anyway to do so without javascript?

  • 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-07T09:25:37+00:00Added an answer on June 7, 2026 at 9:25 am

    The browser may send the parent’s URL as Referer in the HTTP request, so look at $_SERVER['HTTP_REFERER']. That’s not guaranteed though. As such, there’s no 100% foolproof way. If the client doesn’t supply the information in the request, there’s nothing else whatsoever you can do on the server side without explicitly passing the parameter in the URL.

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

Sidebar

Related Questions

suppose i have a file missing at http://www.mydomain.com/user/10202.html i.e user.php then the server gives
For example if location.href = 'http://mydomain.com/en/' and I have <a href=my-file.html id=myId>i am just
We have got an extjs 3.1.1 form with file upload field ( http://www.extjs.com/deploy/dev/examples/form/file-upload.html from
I have an HTML file and i would like to parse through it using
I have an ecommerce site which currently has product URLs like this: http://www.mydomain.com/nike-tshirt/Large http://www.mydomain.com/nike-tshirt/Medium
I have an html file parent.html, which i access by http://foo.com/webtest/parent.html obviously on server
I have following dynamic URL http://foo.mydomain.com and I have following in my .htaccess file
I have a html file that contains urls that start with ftps, http, https,
I have a html file like following: <form action=/2811457/follow?gsid=3_5bce9b871484d3af90c89f37 method=post> <div> <a href=/2811457/follow?page=2&amp;gsid=3_5bce9b871484d3af90c89f37>next_page</a> &nbsp;<input
I have a simple login page and the URL structure is like www.mydomain.com/admin/auth I

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.