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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:34:19+00:00 2026-05-24T21:34:19+00:00

How could I make my webpage change its content using get parameter? I saw

  • 0

How could I make my webpage change its content using get parameter? I saw a bunch of website registrations that when you are successfully registered you’ll be redirected to the same page but with get parameters i.e http://www.register.com?do=success, or something like that. I tend to make another webpage for that but this looks promising. Instead of making another page, I would just change the content using get parameter for success registration page.

  • 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-24T21:34:19+00:00Added an answer on May 24, 2026 at 9:34 pm

    Nowadays web applications have more or less only one single entry point (index.php) and avoid different and resource specific files. The reason is that a single file provides more control over how the user interacts with the site. The actual resource to be returned to the user is then specified in the query string (or determined through trailing folders and some rewriting mechanism).

    A simple approach to establish a single entry point for your entire site:

    index.php

    <?php
    
        switch ($_GET['pageId']) {
            case 0:
                echo "Home";
                include "content/home.inc.php";
                break;
            case 1:
                echo "Links";
                include "content/links.inc.php";
                break;
            case 2:
                echo "Animated Gifs";
                include "content/coolstuff.inc.php";
                break;
            case 3:
                echo "Guestbook";
                include "content/guestbook.inc.php";
                break;
            default:
                echo "404";
                break;
        }
    

    Call:

    http://localhost/index.php?pageId=0
    http://localhost/index.php?pageId=1
    http://localhost/index.php?pageId=2
    http://localhost/index.php?pageId=3
    http://localhost/index.php?pageId=Hohoho
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a python lib that could make a 2-dimensional list of (R,G,B) data
I would like to produce an executable that could make an update verification before
I'm using Firefox 7.0.1 on Windows 7 and I went to a webpage that
I would like to know how I can make a webpage that will look
I was wondering if anyone knows how could I make my own "Webpage screenshot
I have to make a webpage using mod_python, i have to load an image
I am attempting to make a dead simple webpage that does things when I
just wondering if I have a webpage that generates a pdf, but could take
I'm looking to make a webpage that will show a random web site (within
I know you could make a helper pretty easily given the data. So, if

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.