Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 03-06-2006, 02:21 AM   #1
Fully Optimized
 
Join Date: Jun 2005
Posts: 3,275
Send a message via ICQ to DJ Stephen Send a message via AIM to DJ Stephen Send a message via MSN to DJ Stephen Send a message via Yahoo to DJ Stephen
Default www.url.com/any/index.php?id=fonts Help

Hi,
I want this to work so i followed this code from a little tutorial i used:
Code:
<?php

switch($_GET['page']) {

case "fonts":
echo "fonts";
break;

case "products":
echo "Products";
break;

case "contact":
echo "Contact";
break;

default:
echo "index";
break;

}

?>
Whats happening to me is i have pasted this php code where i want it, and i am having a problem that its just displaying the name in the echo speech marks when i want it to display the fonts.php page.
What extra code would i need?

Thanks
Steven
__________________

DJ Stephen is offline   Reply With Quote
Old 03-06-2006, 06:48 AM   #2
BSOD
 
Computergen's Avatar
 
Join Date: Dec 2004
Posts: 3,175
Default Re: www.url.com/any/index.php?id=fonts Help

include('fonts.php');
__________________

Computergen is offline   Reply With Quote
Old 03-06-2006, 01:05 PM   #3
Fully Optimized
 
Join Date: Jun 2005
Posts: 3,275
Send a message via ICQ to DJ Stephen Send a message via AIM to DJ Stephen Send a message via MSN to DJ Stephen Send a message via Yahoo to DJ Stephen
Default Re: www.url.com/any/index.php?id=fonts Help

thanks for this becuase now it works.
DJ Stephen is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 10:37 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0