- protected.php
- form.htm
Made by me and it works
Have fun with it 
cya sven089
Code :
// hide source code
// hide line numbers
// hide source code
// hide line numbers
1 <?php
2 $user = "USERNAME";
3 $password = "PASSWORD";
4 $formuser = $_POST["formuser"];
5 $formpass = $_POST["formpass"];
6 if(($formuser == $user) && ($formpass == $password)){
7 //Protected Content here
8 }
9 else {
10 echo("Login Incorrect, Please click back and try again";
11 }
12 ?>
- form.htm
Code :
// hide source code
// hide line numbers
// hide source code
// hide line numbers
1
2 <form name="login" method="post" action="protected.php">
3 Username:
4 <input name="formuser" type="text" id="formuser">
5 <br />
6 Password:
7 <input name="formpass" type="password" id="formpass">
8 <br />
9 <input type="submit" name="Submit" value="Submit">
10 <input type="reset" name="Reset" value="Reset">
11 </form> 
Made by me and it works
Have fun with it 
cya sven089

Donation:If you like our free quality work, make a donation by using Paypal and tell us what you would like to see improved on our site for the next few months. |
|













Page Info












