I need to enter a specific password, if it is correct to redirect me to another page.
Do I have to add javascript code?
<?php
$password = "123456";
if ($_POST['password'] != $password) {
?>
<h2>Logueate</h2>
<form name="form" method="post" action="">
<input type="password" name="password"><br>
<input type="submit" value="Login"></form>
<?php