Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How is this done???

Status
Not open for further replies.

sd0t1

IS-IT--Management
Mar 14, 2007
131
US
Have you seen these websites where every page you click on appears to be the same page in the URL bar.
Like:
then no matter what link you click on, all you see is in the URL the entire time your on the site.
I know i've seen them before, but couldn't find one to show you guys an example.
I want to build a site like that, but need a push in the right direction.
Please help.

Thanks.
 
If your using Apache, check out using the module mod_rewrite
URL Rewriting Engine. This will allow you to do what you like.
 
most of the time the page uses the despatch method of programming. all the functionality of the entire site hangs off the first page; all links point to the main page and the logic inside the code decides what to do

Code:
switch ($_POST['action']){
  case "something":
    //do someting
    break;
  case "something else":
    //do something else
    break;
  default:
    //do the default action
}

I tend to use this method of programming for all my dynamic applications. There is a discussion on it from a security standpoint in the phpsec.org site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top