For redirecting, you can use the PHP header() function like so : header("Location: example.php"); That'll redirect to example.php