Thema: PHP Problem

Einzelnen Beitrag anzeigen

Flare

Registriert seit: 26. Jan 2006
Ort: Leipzig
529 Beiträge
 
Delphi 7 Professional
 
#3

Re: PHP Problem

  Alt 21. Jan 2007, 18:56
Code:
if ($_GET['page']=='') {
  header('Location: 'index.php?page=start.html');
}
bzw. kürzer:
Code:
switch ($_GET['page']) {
  case 'start.html': include 'start.html'; break;
  case 'login.html': include 'login.html'; break;
  // ...
  default: include 'start.html';
}

Flare
Willy Scheibel
  Mit Zitat antworten Zitat