Skip to content

Instantly share code, notes, and snippets.

@asanand3
Created December 27, 2016 00:31
Show Gist options
  • Save asanand3/259b7c03c5e27cdcb51077c9c60a3503 to your computer and use it in GitHub Desktop.
Save asanand3/259b7c03c5e27cdcb51077c9c60a3503 to your computer and use it in GitHub Desktop.
<?php
if($_SERVER['REQUEST_METHOD']=='POST'){
$username = $_POST['username'];
$password = $_POST['password'];
if($username == "admin" && $password == "admin"){
echo 'success';
}else{
echo 'fail';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment