GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-May-2005, 23:28
ycliuwz ycliuwz is offline
New Member
 
Join Date: Apr 2005
Posts: 2
ycliuwz is on a distinguished road
Question

login php


hi,
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  
Old 24-May-2005, 13:51
anjanesh anjanesh is offline
New Member
 
Join Date: Mar 2005
Location: Mumbai, India
Posts: 16
anjanesh is on a distinguished road
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 GIDBlogWelcome to Baghdad by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 01:50.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.