Jump to content

php code for "if" statement


thomas_1968

Recommended Posts

$var = $_POST["name"];
$compareable = "hello";
if (isset($var) && $var == $comparable) {
    header('Location: http://www.example.com/secretpage'.php);
}

 

something like that?

 

Why make it look complicated?

 

if ($var == $comparable) {

    header('Location: http://www.example.com/secretpage.php');

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.