Jump to content

PHP and GoDaddy Hosting


maddog94

Recommended Posts

Hello,  I am new.  I have created a very simple webpage that has content the changes when a link is clicked.  The site works perfectly on my "localhost".  I am running Apache 2.2 and PHP 5.3 on localhost.  When I upload to my GoDaddy shared hosting, ( I beleive Apahe 1.3 and PHP 5.2) my "index.php" displays fine on load. However, when any of the links are clicked the content area where it is supposed to change disapeears. Here is a sample of the code that I am using:

 

 

// These are the links in the index.php

html code...

<li><a href="index.php?id='home'" id="home" name="home">Home</a></li>

<li><a href="index.php?id='form'" id="form" name="form">Register</a></li>

<?php

include("form1.php");

                getPage();

                ?>

 

html....

Then on the form1.php page is the following code...

 

function getPage()

{

    $linkID = $_GET['id'];

    if ($linkID == NULL)

    {

        changeBool("'home'");

    }

    else

    changeBool($linkID);

}

 

//end example

 

The function "changeBool()" has a switch structure that is determined by the $_GET[] var.

I beleive this has something to do with the php.ini settings, possibly the apache settings...any ideas would be greatly appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.