![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 29.09.2010 Ostrzeżenie: (0%) ![]() ![]() |
witam umieściłem na stronce następujący kod
w pliku kontakt.html:
natomiast plik wyslij.php wygląda następująco
i wszystko działa email dochodzi jak należy z tym że wyświetla się informacja email został wysłany i biała strona a chciałbym aby powracało na strone z formularzem automatycznie ale nie za bardzo wiem jak to mam teraz zrobić PS. z góry dziękuję za pomoc Ten post edytował shogunzmc 29.09.2010, 11:19:42 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 36 557 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
Uzyj header i przekieruj po np. 5 sekundach spowrotem na swoj formularz
http://pl.php.net/manual/pl/function.header.php Cytat Several times this one is asked on the net but an answer could not be found in the docs on php.net ...
If you want to redirect an user and tell him he will be redirected, e. g. "You will be redirected in about 5 secs. If not, click here." you cannot use header( 'Location: ...' ) as you can't sent any output before the headers are sent. So, either you have to use the HTML meta refresh thingy or you use the following: <?php header( "refresh:5;url=wherever.php" ); echo 'You\'ll be redirected in about 5 secs. If not, click <a href="wherever.php">here</a>.'; ?> Hth someone |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.09.2025 - 15:43 |