Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Password Protected...


1 reply to this topic

#1 nbop

    Newbie

  • Kontributors
  • Pip
  • 5 posts

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 ipunto21

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 23 posts
  • Location:CHile
  • Interests:PHP and web design

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




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users