CODE
<?php
if($passwd != "yourpassword") {
echo('<form action="'.$_SERVER['PHP_SELF'].'">Type your password:<input type="password" name="passwd" /><input type="submit" value="Enter" /> </form>');
exit;
}
?>
Here add html, php code
if($passwd != "yourpassword") {
echo('<form action="'.$_SERVER['PHP_SELF'].'">Type your password:<input type="password" name="passwd" /><input type="submit" value="Enter" /> </form>');
exit;
}
?>
Here add html, php code
if the password is wrong the code after the exit; will not be executed