Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Przekierowanie po określonym czasie
Maciek_#_&
post
Post #1





Grupa: Zarejestrowani
Postów: 149
Pomógł: 1
Dołączył: 22.02.2010

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


Witam,

Zajmę sekundę i zmykam, chciałbym w php uzyskać taki efekt:
  1. <meta HTTP-EQUIV="Refresh" CONTENT="10; URL=http://strona.pl>



Czyli że skrypt się wczyta, wyświetli się wiadomość, skrypt odczeka ileś tam sekund, a następnie wykona to:
  1. header('Location: <a href="http://strona.pl&#39%3b%29;" target="_blank">http://strona.pl');</a>


Dziękuje za pomoc (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 559
Pomógł: 6315
Dołączył: 27.12.2004




http://pl2.php.net/manual/pl/function.header.php
kod ze strony:
  1. header( "refresh:5;url=wherever.php" );
  2. echo 'You\'ll be redirected in about 5 secs. If not, click <a href="wherever.php">here</a>.';

Tak, wiem... szukanie jest takie męczące....(IMG:style_emoticons/default/tongue.gif)
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: 3.10.2025 - 09:46