| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Password Protected...
Started by nbop, Sep 18 2004 12:30 PM
1 reply to this topic
#1
Posted 18 September 2004 - 12:30 PM
How can you make a page (or several pages) protected with a password or with different usernames and passwords, using query strings? please give me some helpful scripts or names of programs. On the section of password protection i really *BLEEP*
. I always use a script that does "name".htm, but it sux so ...
#2
Posted 20 September 2004 - 03:41 AM
you have to build a dimanic site... how?... i think thqat the best way is writing php...
i used to write this simple script for some pages...
<?php
if (($username == $user) OR ($username == $user_res)) {
if (($password == $pass) OR ($password == $pass_res)) {
echo "<h2> Loading page...</h2>";
}
}
?>
where $user and $user_res are html textbox named user and user_res
$pass and $pass_res are html passwords textbox named pass and pass_res
it means that if you pass Username and Password you will se Loading page message but if your Username or Password are incorrecto... you only will see a white page...
bye
i used to write this simple script for some pages...
<?php
if (($username == $user) OR ($username == $user_res)) {
if (($password == $pass) OR ($password == $pass_res)) {
echo "<h2> Loading page...</h2>";
}
}
?>
where $user and $user_res are html textbox named user and user_res
$pass and $pass_res are html passwords textbox named pass and pass_res
it means that if you pass Username and Password you will se Loading page message but if your Username or Password are incorrecto... you only will see a white page...
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













