I need a PHP code to paste onto one file so a password is required.
Thanks.

I need a PHP code to paste onto one file so a password is required.
Thanks.
I don't quite understand what you mean?
PHP Code:[LEFT]<?[/LEFT]
[LEFT]$name = $_GET['name'];[/LEFT]
[LEFT]echo "Hi, your name is $name";[/LEFT]
[LEFT]?>[/LEFT]
[LEFT][/LEFT]
Basically i need a simple code so not like htaccess where the whole folder requires a password to access but just a certain file.
Code by Mentor:
http://www.habboxforum.com/showthread.php?t=202248
PHP Code:[LEFT]<?[/LEFT]
[LEFT]$name = $_GET['name'];[/LEFT]
[LEFT]echo "Hi, your name is $name";[/LEFT]
[LEFT]?>[/LEFT]
[LEFT][/LEFT]
Not very secure.
use mysql then lol
.:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
.:.: Stand up for what is right, even if you stand alone:.:.
Nah, i am using that anyway and making it more secure.
Make a form. Call the password box password
Then use this
<?PHP
if ($password == $passwordhere) Then {
echo"Whatever";
}
?>
Should work?
Last edited by :Blob; 09-08-2006 at 11:37 AM.
Want to hide these adverts? Register an account for free!