dimanche 20 décembre 2015

if clause in php is not entered

I've got a huge problem with my php-file. I want to redirect to another site through header(). But the if-clause doesn't get accepted and I can't think of any problem with it. I tried everything, but it won't work. Could you help me?

`

session_start();
include("php/connect.php"); //connection to database
$test = 0;

if($test == 0){
    header("Location: /nextsite.php");
}
?>

`
Sincerely, Michele

Aucun commentaire:

Enregistrer un commentaire