code0110 Posted September 14, 2013 Report Posted September 14, 2013 (edited) Salut Cine ma poate ajuta si pe mine?Am o functie de genul:daca nu s-a reusit logarea sa afiseze o eroare,in caz contrar(adica login efectuat cu succes) as dori sa ma redirecteze pe index de exemplu. Edited September 14, 2013 by code0110 Quote
Sim Master Posted September 14, 2013 Report Posted September 14, 2013 Asta?header('location: /index.php'); Quote
code0110 Posted September 14, 2013 Author Report Posted September 14, 2013 Asta?header('location: /index.php');Mi-l afiseaza ca text simplu. Quote
yoyois Posted September 14, 2013 Report Posted September 14, 2013 (edited) Mi-l afiseaza ca text simplu.l-ai pus intre <?php ?> sper.Vezi ca sunt niste probleme cu asta:Daca ai tagul <html> in fata nu poti reseta headerele Arunca o ocheada aiciTrebuie sa mearga. Daca nu faci cu html.Google: php redirect, html redirect Edited September 14, 2013 by yoyois 1 Quote
Zatarra Posted September 14, 2013 Report Posted September 14, 2013 Mi-l afiseaza ca text simplu.apache - PHP code is not being executed (i can see it on source code of page) - Stack OverflowSpor Quote