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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:43:44+00:00 2026-05-30T15:43:44+00:00

I use the following code to include page content in a index.php file (template).

  • 0

I use the following code to include page content in a index.php file (template).

if(isset($_GET['page']))
{
include($_GET['page'].'.php');
}

if(isset($_GET['special']))
{
include($_GET['special'].'.php3');
}

The url could look like this: http://www.example.com/?page={PageToShow}

This works fine for Chrome, Firefox and Safari, but the content is not shown in IE 7,8 & 9. Any idea why?

  • 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-05-30T15:43:45+00:00Added an answer on May 30, 2026 at 3:43 pm

    The server side PHP scripts wouldn’t be affected by the browser that you use to view the page, so this looks like a rendering issue – check that the included code produces valid HTML, and that you haven’t got <html> tags being included within other <html> tags.

    You might want to rethink the way you’re including page content – doing this via a GET variable is potentially insecure: for a start, it doesn’t limit the files to those within the document root of your website.

    At the very least I’d recommend doing some sanity checks on the input files (i.e. are they in the webroot?), but a more modern method is to use .htaccess rewriting to send all requests to index.php, where you can then choose which files to include depending on the request (take a look at this post for more information).

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

Sidebar

Related Questions

I use the following code to collapse/show divs in my content page: $(document).ready(function() {
i code the following <?php if ($id = mysql_real_escape_string(@$_GET['pid']) && $uid = mysql_real_escape_string(@$_GET['file'])) echo
I'm passing information from one page another with following php code.. Index.php page: <?php
I use the following code to compile a cpp file to object file. g++
Is my use of @global correct in the following case? // File: my_special_class.php <?php
I have a menu using the following code, <ol id=feature_list> <li><a href=index.php?action=profile class=feature_current>Profile</a></li> <li><a
i've got this jsf code <f:view> <rich:page pageTitle=My Page markupType=xhtml> ... <rich:panel id=content> <a4j:include
I cant use the following code in Master page for Globalization & Localization. It
I use the following code to create countdowns in Javascript. n is the number
I use the following code try to create an array of string vectors, 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.