Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wycztanie index.php?id=news
Bladeq123
post
Post #1





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

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


Witam dalej mam ten problem, otóż:

Chce zeby jak wejde na stronę lala.pl, zeby mi czytało lala.pl/index.php?id=news, a nie lala.pl/index.php

Jak to zrobić kiedyś mi jeden user podał żeby wkleił to w head: <?php
header("Location: index.php?id=news");
?>

ale to nie działa.

Proszę o pomoc.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
WebKing
post
Post #2





Grupa: Zarejestrowani
Postów: 219
Pomógł: 16
Dołączył: 16.07.2007

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


  1. <?php
  2. if ($_GET["id"] == "news") {
  3.   echo "jakas strona";
  4. }
  5. ?>

Prosze chyba o to chodzi
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: 5.10.2025 - 07:58