★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/000568.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  help implementing a user and password page

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   help implementing a user and password page
ltena
Member
posted February 08, 2000 12:24 AM     Click Here to See the Profile for ltena   Click Here to Email ltena     Edit/Delete Message Reply w/Quote
Thanx for taking the time to read this post.

What I want to so is to restrict acces into a page, I was thinkin something as simple as this, having a Database in Mysql with fields user and pw use a kinda command like "where user='$user' and pword='$pword'" if the two fields match send the user to a webpage like admin.html, and the last thing how can I encript or hide the displayed url or page? like www.example.com/ or symbols etc... so a user cant cunsult the page jumping the loggin page?

Thanx allot, by the way, Im starting at this php and mysql, so please try to be the most explicit Ill apreciate it.

chyrag
Member
posted February 08, 2000 05:44 AM     Click Here to See the Profile for chyrag   Click Here to Email chyrag     Edit/Delete Message Reply w/Quote
If you're using Apache, then you can restrict
access to a directory using htaccess. Look up
the docs on www.apache.org for details.

If you want to ``restrict access to a particular page'', then you should be _printing_ out the page via CGI/PHP/etc when the person is authenticated.

If you want to store the username/passwd in
MySQL db, then look up mysql_auth module at modules.apache.org.

ltena
Member
posted February 08, 2000 10:53 AM     Click Here to See the Profile for ltena   Click Here to Email ltena     Edit/Delete Message Reply w/Quote
Thanx chyrag:

But its too complicated for me the way that you toldme I dont wanna make a security loggin for the CIA Im using php and mysql and I wass loking for something as simple as if user and pw in the db match send to the desired url if not well, display the error msg.

thanx anyway by the way I dont have the htaccess in my machine and im running apache in win98

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.