thankyou.php redirect header
What is the purpose of redirecting to the thank you page only if "index.php" is not blank?
In other words, in "contactus.php", within the following code:
//Send Mail All Entries
if ("index.php"!="") {
header("Location: thankyou.php");
}
what is the purpose of
if("index.php"!="")
?
This is the only part of the code that's given me trouble, so I'm trying to better understand the significance of basing the redirect on a page that doesn't exist ("index.php").
Thanks!