I am trying to find a way to make a password enter form without changing the page. Right now I am using it like this:
Enter:
<form action="developer.php" method="post">
<p>Password:</p><input type="password" name="password"/><br>
<input type="submit"/>
</form>
developer.php:
<?php
$input = $_POST["password"];
if ($input != "mySecretPassword"){
header("Location: site/develop.php");
exit;
}
?>
And underneath de code from above the code to draw the whole page.
But I would like to stay at the same page (develop.php) instead of redirecting to developer.php, how should I do that?
Thanks