Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Index.php?id=
Bladeq123
post
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 25.12.2008

Ostrzeżenie: (0%)
-----


Witam, mam pytanie jak zrobić że jak wejdę na stronę to żeby czytało od razu np. index.php?id=news
a nie sam index.php

Ten post edytował Bladeq123 8.01.2009, 21:06:56
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Bladeq123
post
Post #2





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 25.12.2008

Ostrzeżenie: (0%)
-----


Wklejam to gdzie chce zeby mi czytało zakładki

  1. <?php
  2.    if($_GET['id']=="galeria"){
  3.    include("dane/galeria.html");
  4.    }
  5.  
  6.    if($_GET['id']=="programy"){
  7.    include("dane/programy.html");
  8.    }
  9.  
  10.    if($_GET['id']=="ksiazki"){
  11.    include("dane/ksiazki.html");
  12.    }
  13.  
  14.  
  15.    ?>


i chce zeby jak wejde na strone czytało odrazu index.php?id=news a nie index.php bo tam jest pusto wtedy
Powód edycji: Proszę używać tagu [PHP] do umieszczania kodu PHP.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 27.12.2025 - 13:25