Jump to content

PHP site pages dont load


mitcho

Recommended Posts

hey, i have just uploaded this website to this url - [a href=\"http://www.guardianlawyers.com.au/\" target=\"_blank\"]http://www.guardianlawyers.com.au/[/a]

what should happen is when u click the buttons, the respective html pages should load into the site. however this is not working as none of the buttons work when clicked.

i dont know that much about versioning but i put this file on the server - [a href=\"http://www.guardianlawyers.com.au/info.php\" target=\"_blank\"]http://www.guardianlawyers.com.au/info.php[/a] to get the php info.

however, the exact same site works here - [a href=\"http://www.mitchellpage.com.au/temp/guardian/\" target=\"_blank\"]http://www.mitchellpage.com.au/temp/guardian/[/a]

can anyone tell why, is it something to do with the versioning? please advise...
Link to comment
Share on other sites

Could someone please provide an example of how to fix the code i am using.

here is the php:

[code]?php switch($id) { default: include('home.html');
break; case "home": include('home.html');
break; case "about": include('about.html');
break; case "services": include('services.html');
break; case "people": include('people.html');
break; case "news": include('news/news.php');
break; case "contact": include('contact.html');
break; case "disclaimer": include('disclaimer.html');
break; case "sitemap": include('sitemap.html');
} ?>[/code]

and i call it like this eg.

[code]<a href="index.php?id=contact">CONTACT</a>[/code]
Link to comment
Share on other sites

[!--quoteo(post=366344:date=Apr 19 2006, 03:58 AM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Apr 19 2006, 03:58 AM) [snapback]366344[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Somewhere before your switch statement have the following...

$id = $_GET['id'];
[/quote]


thanks - that worked exactly right! your help is much 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.