Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add password php file

<?php
$user = $_POST['user'];
$pass = $_POST['pass'];

if($user == "admin"
&& $pass == "admin")
{
        include("secure.html");
}
else
{
    if(isset($_POST))
    {?>

            <form method="POST" action="secure.php">
            User <input type="text" name="user"></input><br/>
            Pass <input type="password" name="pass"></input><br/>
            <input type="submit" name="submit" value="Go"></input>
            </form>
    <?}
}
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #password #php #file
ADD COMMENT
Topic
Name
4+9 =