Probably a simple solution but I'm unable to figure it out or find a solution online.
I want to check for an error, if there is one I want it to redirect to a certain page, if not I want to include a page. What I have so far is this:
The "else" part of the code is fine. Instead of "including" contact.php I want it to load that page. How would I do that???
I want to check for an error, if there is one I want it to redirect to a certain page, if not I want to include a page. What I have so far is this:
Code:
if($error) {
include("contact.php");
}
else {
include("feedbacksent.php");
}