I’m trying to write a simple ‘if ‘ statement that instructs the browser to load a url if a condition is true. I can’t find any simple ‘go to url’ functions in PHP. Please help...
Example:
<?php
$x = $http_post_vars["x"];
if ($x=="foo") {
go_to_url("page2.html");
}
else {
echo "condition is false";
}
?>
=============
Fixed example above per Shrike's observation