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
Bladeq123
post
Post #2





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

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


moglbys pomoc a nie robic z siebie nie wiadomo kogo.
Go to the top of the page
+Quote Post
nugae
post
Post #3





Grupa: Zarejestrowani
Postów: 19
Pomógł: 2
Dołączył: 30.03.2004

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


Cytat(Bladeq123 @ 12.01.2009, 19:18:06 ) *
moglbys pomoc a nie robic z siebie nie wiadomo kogo.


łatwiej byłoby Ci pomóc gdybyś dokładnie opisał swój problem a tak można się tylko domyślać o co chodzi.
może

Kod
<?php
if( !isset($_GET['id']) )
$_GET['id'] = 'news';
?>


+ reszta Twojego kodu

Ten post edytował nugae 12.01.2009, 17:41:06
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: 4.10.2025 - 10:37