Developing Web Applications
<p>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.</p>

<p>Here is the  page:</p>

<pre><code>// 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';
}
</code></pre>

<p>And here is the last one:</p>

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

<p>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.</p>

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

<p>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</p>
