Tutorial Guide, the best help you can get to find PHP Programming tutorials!2009-01-07
Tutorial Guide, best help you can get to find tutorials!
 Home > Programming > PHP Programming
Search for :
 Home
 Categories
- 3D Software
- Arts and Crafts
- Casemodding
- Computers
- Consoles
- Design
- DVD and CD-R
- Games
- Hardware
- Health
- Home and Gardening
- Internet
- Javascript Tools *new
- Microsoft
- Mobile Phone
- MP3
- Music
- Networking
- Operating Systems
- Programming
- Recipes
- Software
- Spoken Languages
- Sports
- Video
 Advertise
 Links
 Contact
 Submit website
 Affiliates
- 3D models
- 3D Tutorials
- 3D-Resources
- Adobe Photoshop
  Tutorials
- Bluesfear
- Business Logo Design
- Chipmunk PHP Scripts
- Data Recovery
- Ecommerce Web
  Design
- File Recovery
- Hosting Resources
- Logo Design
- Logo Design
- Maya 3d Tutorials
- OxyScripts.com
- Tutorial Park
- Vertex Templates
- Web Development
  Company
- Web Hosting
- Web Hosting guide
- Web Hosting Search
TutorialMan.com
Depiction
Fusion Tutorials
CYGAD's 3DXtra
Become an Affiliate

Password Protection

Times viewed: 18122   Rating: 4/10
If you want to password protect a file, then you can use this:

<form name="pp" method="post" action="check.php">
<input type="password" name="pass">
<input type="submit" value="Log In">
</form>

Ok we have a form and an input, called pass.
When they click Log In it will take them to check.php

So in check.php we have the following:


<?php
if ($_POST['pass'] == "PasswordHere") {
include ("welcome.php");
}
else {
header("Location: error.php");
}
?>


So this is an if and else statement, replace PasswordHere with the password you want to use!

If the password in the form and your password match then it will keep check.php but actually load inside it welcome.php
If its wrong it will redirect them to error.php

Author: Ice Tutorials
Times viewed: 18122   Rating: 4/10
More PHP Programming - Scripts Tutorials:
- PHP Contact Form
DISCLAIMERPOWERED BY DIGITAL SPARK