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 621495

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:52:50+00:00 2026-05-13T18:52:50+00:00

I am building a simple admin area for my site and I want the

  • 0

I am building a simple admin area for my site and I want the URLs to look somewhat like this:

http://mysite.com/admin/?home
http://mysite.com/admin/?settings
http://mysite.com/admin/?users

But I am not sure how I would retrieve what page is being requested and then show the required page. I tried this in my switch:

switch($_GET[])
{
    case 'home':
        echo 'admin home';
        break;
}

But I get this error:

Fatal error: Cannot use [] for reading in C:\path\to\web\directory\admin\index.php on line 40

Is there any way around this? I want to avoid setting a value to the GET request, like:

http://mysite.com/admin/?action=home

If you know what I mean. Thanks. 🙂

  • 0 0 Answers
  • 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

Sidebar

Related Questions

I am building a simple admin area for my site and I want the
Building a custom adminhtml module. Im using a simple form. it looks like this
I am building a simple Point of Sale system for my project. This system
I am building a simple particle system and want to use a single array
I'm building simple application on as3. Kind of starship game. What I want to
I want to build a simple blog which contains: A home page with blogs
I'm building a site-wide cancan auth system. Just to get very simple validation of
I am building a simple website that needs 3 user levels (member, mod, admin)
I am building a simple like system for my website. The problem is that,
I'm building simple GUI for my app. I have couple of JPanels. I want

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.