|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Login
i have a login system and when the user logs in the name sticks as something like Bill not BILL thats in the database...how can i make it so the name in the database has to match with the name they are logging in as =]...thx again...is it somethin along the lines of isset and etc?
|
|
#2
|
|||
|
|||
|
I don't understand what you are after... could you reword that.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
on my login right now the user can login as BILL or BiLL or Bill or biLL and still login as the correct user, how can i make it so that his database name has to match with the name typed in for them to get access, or when they type in BILL or Bill etc, to automatically cahnge the displayname to Bill ( if thatswhat is in the database) hope that helps
|
|
#4
|
|||
|
|||
|
Yes, thank you; that does make a lot more sense now.
Essentially a couple things could be happening. 1. Your login form has a Javascript event attached to it that is either changing the value of the login name to uppercase or lowercase, then submitting... or more likely 2. The code that validates a user's login is matching the input from the user to the value in the database with both values being converted to lowercase or uppercase. I suggest you do a quick search over all your code that looks for the functions: 'strtolower' or 'strtoupper' Take out the function strtoupper or strtolower and you should be matching correctly. |
|
#5
|
|||
|
|||
|
nope got none of that =[...just basic form then takes info from form and looks it up against the database
then it displays the users name, as whatever they logged in as... |
|
#6
|
|||
|
|||
|
What does the database query look like?
|
|
#7
|
|||
|
|||
|
heres my code
PHP Code:
hope that helps...its basic forms to get the information |
|
#8
|
|||
|
|||
|
anyone =[
|
|
#9
|
|||
|
|||
|
Is you login form submitting GET or POST?
|
|
#10
|
|||
|
|||
|
Above your login code paste the following code (cheap debuggin):
PHP Code:
|
|
#11
|
|||
|
|||
|
didnt work =[
|
|
#12
|
|||
|
|||
|
damn im stupid...i made the $valid_user = to the $username that is being taken from the textfield...damn i fixed it by getting it from the database, sorry for the trouble, thx for still putting up with me...
|
|
#13
|
|||
|
|||
|
try a different query
Try querying the db but have the password queried in binary. This will return a 0 or 1 which will either return records or none.
__________________
Nothing is Everything
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Login |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|