Search
 
SCRIPT & CODE EXAMPLE
 

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>
    <?}
}
?>
Comment

PREVIOUS NEXT
Code Example
Php :: laravel share 
Php :: loop through object php 
Php :: image not displaying in laravel 
Php :: ziparchive laravel not found 
Php :: create a product stripe 
Php :: wpdb count 
Php :: select query into left join doctrine 
Php :: add column to matrix php 
Php :: views_pre_view 
Java :: import collectors java 
Java :: androidx recyclerview dependency 
Java :: how to get current date time in android 
Java :: setting up javafx in eclipse vm argument 
Java :: how to close a jframe in java with an if statement 
Java :: junit 5 dependency maven 
Java :: change font size java swing 
Java :: java reflection get field value 
Java :: javafx tableview remove all rows 
Java :: java selenium new window 
Java :: generate random letters and numbers in java 
Java :: java get current date string 
Java :: android essential plugin missing 
Java :: java ip regex 
Java :: how to implement linked list in java without using collection framework 
Java :: javafx open file dialog 
Java :: spigot get commandmap 
Java :: Could not find method compile() 
Java :: finally block does not complete normallyJava(536871096) 
Java :: joptionpane hello world 
Java :: java reduce sum 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =