Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

What i am doing wrong? header location dont work

$
0
0

Replies: 0

i have a simple page with a puzzle where if you solve the password, you move to the next step,
my code does work in plain html files but does not on wordpress with your plugin, why?
when the password is correct isntead of load a new secret page, it fails, and loads itself with just the title

——————-
<?php
$pass = $_POST[‘pass’];
if($pass == “test”){
header(“Location: next2121.php”);
}else{
if(isset($_POST)){
?>
<form method=”POST” action=””>
<input type=”password” name=”pass”></input>
<input type=”submit” name=”submit” value=”Continue”></input>
</form>

<?php
}
}
?>

————————


Viewing all articles
Browse latest Browse all 59525

Trending Articles