![]() |
|
#1
|
|||
|
|||
login phphi,
could anyone please help me out here. I've been trying to make a user login using php but not sure how to. I am to read from a .txt file and check input of username and password is valid with that in the .txt file. if true redirect user to specific page. i think i know how to read from the file, but the problem is that i got no idea how to compare the values to inputs from a user login form. example of .text file user1:pwd user2:pwd and another thing is how can i add a new user and write to existing file user1:pwd user2:pwd newuser:pwd Sigh, Would really appreciate anyhelp i can get. thanks Last edited by LuciWiz : 11-May-2005 at 23:34.
Reason: Disabled smilies
|
|
#2
|
|||
|
|||
|
1. Dont use text file - use a database where a table will contain usernames and passwords - its much easier to query it and more security - a text file can easily be downloaded.
2. Writing, deleting etc will be very easy and efficient if stored in a db. |
Recent GIDBlog
Welcome to Baghdad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help ! I need help starting up on Php ! | onauc | MySQL / PHP Forum | 11 | 04-Jan-2005 23:57 |
| uisng php to display php | dopee | MySQL / PHP Forum | 6 | 14-May-2004 18:40 |
| php software | dopee | MySQL / PHP Forum | 0 | 04-May-2004 11:26 |
| [script] Password Protect web pages/site using PHP and MySQL | JdS | PHP Code Library | 0 | 23-Jul-2003 10:02 |
| All the big PHP script collections that matter | jrobbio | MySQL / PHP Forum | 5 | 06-Jun-2003 16:14 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The