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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:56:02+00:00 2026-05-26T23:56:02+00:00

I am learning how to develop web applications using php. I am trying to

  • 0

I am learning how to develop web applications using php. I am trying to get this contact form to come up when you click the contact link but nothing happens. I have been over and over the pages and I do not see why it does not work.

Here is the page:

// Determine what page to display:
switch ($p) {

    case 'about':
        $page = 'about.inc.php';
        $page_title = 'About This Site';
        break;

    case 'this':
        $page = 'this.inc.php';
        $page_title = 'This is Another Page.';
        break;

    case 'that':
        $page = 'that.inc.php';
        $page_title = 'That is Also a Page.';
        break;

    case 'contact':
        $page = 'contact.inc.php';
        $page_title = 'Contact Us';
        break;

    case 'search':
        $page = 'search.inc.php';
        $page_title = 'Search Results';
        break;

    // Default is to include the main page.
    default:
        $page = 'main.inc.php';
        $page_title = 'Site Home Page';
        break;

} // End of main switch.

// Make sure the file exists:
if (!file_exists('./modules/' . $page)) {
    $page = 'main.inc.php';
    $page_title = 'Site Home Page';
}

And here is the last one:

    <div id="navigation">
        <ul id="navlist">
            <li><a href="index.php">Home</a></li>
            <li><a href="index.php?p=about">About Us</a></li>
            <li><a href="index.php?p=this">This</a></li>
            <li><a href="index.php?p=that">That</a></li>
            <li><a href="index.php?p=contact">Contact</a></li>
<li><p><strong>A tiny little service announcement.</strong><br/>Please contact us with any questions. </p></li>
        </ul>

The error I am getting is when you click on the link that says contact in the navigation system does not do anything. It is suppose to go to the contact.inc.php so the form shows and the person can fill out. I have been over the code many times and I am not seeing why it will not go over to the contact.inc.php.

Edit: I even tried to change the index.php?p=contact to contact.inc.php and nothing happens either.

Edit: Here is a link to my page. Now if you click on the contact you will see it does not take you to the contact page.http://www.elinkswap.com/snorris/index.php

  • 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-26T23:56:02+00:00Added an answer on May 26, 2026 at 11:56 pm

    You are trying to use Register Globals which is highly discouraged. Instead, access the GET variable explicitly by using switch ($_GET['p']). Additionally check for the existence of $_GET['p'] before using isset().

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

Sidebar

Related Questions

I've been learning to develop applications on the cocoa touch platform. I've come a
I have developed web applications using JSF (myfaces components). But in these days of
I am a rookie learning to develop web sites. To this point I have
I'm learning how to develop SOAP web services with Java. So far now I've
I'm currently learning to develop for the .net compact framework using c# in VS2008
Duplicate : https://stackoverflow.com/questions/135651/learning-unit-testing I'm trying to develop some software for my research group to
I'm PHP-programmer, but I'm extremely interested in learning Java. So I decided to change
I'm learning to develop apps using Qt Creator. I have built a simple app
I have been learning to develop websites using ASP.NET MVC 2 for work... and
I am trying to teach myself WCF (using Learning WCF by Michele Leroux Bustamante),

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.