I am converting a website from asp to php.
I have a user subscription form. When the user subscribe, he is redirected to the main page when subscription is a success.
In ASP, the code looked like:
if allok then
Response.Redirect(main_page)
exit
end if
In PHP, I do:
if ($allok) {
include("index.php");
exit;
}
It works, but I am not sure that including my index.php file is the best method.
Is there any Response.Redirect equivalent in php? What is the best redirect method?
I can not user any header - meta tags as you see.