This line of code works when running on my localhost (and redirects you to the customer.php
page) but does not work when I upload my code to Go-daddy:
header("Refresh:0;customer.php");
This line of code works when running on my localhost (and redirects you to the customer.php
page) but does not work when I upload my code to Go-daddy:
header("Refresh:0;customer.php");
It needs to be:-
header("location:customer.php");
If it shows headers already send
then check and remove two thing:-
If you have any print code (echo
or print()
or print_r()
) before this redirect line then remove that code.
If you have any spaces or empty lines in the end of the file (before or after closing ?>
) then remove it.