GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design 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-Dec-2006, 16:18
insomniac insomniac is offline
New Member
 
Join Date: Jan 2006
Posts: 7
insomniac is on a distinguished road
Question

restricting access to an account


I want to lock a user account when the username for that account is entered more than 3 times incorrectly. I am not too sure how to go about doing this however. The method i use to validate a user is shown below

Code:
##$row is taken from a database containing all usernames and passswords if($username eq $row[0] && $password eq $row[1]) { #Go to the new page }else { if($username ne $row[0]) { display_error_message(); } }

Does anybody have any suggestions how i might go about implementing the restrictions on the number of times a user tries to access the account. I'd appreciate any suggestions

thanks
  #2  
Old 11-Dec-2006, 21:00
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,534
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: restricting access to an account


Check out www.hotscripts.com. There are several ready-made user authentication scripts available. Even if you don't want to use one, it should give you an idea of how to program it.
__________________
Common Sense v2.0-Striving to make the world a little bit smarter.
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

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
a must read for all adsense account holders thing u never knew dont miss this perpetual123 AdSense Forum 0 08-Jun-2006 07:55
Trees and Keys (not for the faint-hearted!) greymalkin CPP / C++ Forum 11 08-Nov-2005 08:04
savings account problem ap6118 CPP / C++ Forum 5 01-Apr-2005 09:37
Urgernt: Extremely queer Apache access log moothecow Apache Web Server Forum 1 20-Dec-2003 02:45

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 11:37.


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