SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 23rd, 2003, 05:12 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 233 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 50 m 19 sec
Reputation Power: 6
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Angry Two problems with my login script

Problem #1:
With my log-in script it keeps going to the last else which just echos saying "It doesn't work". I re-checked the database to make sure the username and password exsist in the table, and they do.

Problem #2:
In the address box in IE it puts:
login.php?suankeyusename=JoeyD473&password=dragon&submit=Log+In

How do I get it to not show that information in the address box? and if I can't how do I get it to at least not show the password?

The script is in the zip file

Side notes:
1. I plan on combining Admin.php and login.php into one file after I get it working (easier to work with smaller pieces then one large piece)
2. I am only using session functions [ie. session_start()] instead of the session globals for testing purposes
Attached Files
File Type: zip log-in_script_chornjr.zip (1.2 KB, 334 views)
__________________
CHornJr
"One day I'll know what I am doing"
My Blog
Suanhacky Lodge #49
Rebel Squadrons

Reply With Quote
  #2  
Old February 23rd, 2003, 06:30 PM
pro547 pro547 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 pro547 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I don't know problem 1 but i know what problem 2 is.

you have
PHP Code:
<form method="get" action="login.php"

and to get it to not display in the information in the address box you use
PHP Code:
<form method="post" action="login.php"

Reply With Quote
  #3  
Old February 24th, 2003, 08:59 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
try this:

change
PHP Code:
if($rowcheck==1)
    { 
//the query returned at least one row
    
while($row=myql_fetch_array($result)) 

to this:
PHP Code:
if($rowcheck>0){ 
    while(
$row=mysql_fetch_array($result)) 
or something similar... it may be in the database, but it also might be returning more than one row for some reason.. also, to make sure, you could always
PHP Code:
echo $rowcheck
before going into the while loop, that could tell you exactly how many rows it is returning, if it's zero, check your database.. also check to make sure that the fields for the password are md5'd and 32 characters long... That's the only thing I could think it might possibly be.. let me know what you find out, k?

And pro is right, change the method from get to post.

Reply With Quote
  #4  
Old February 24th, 2003, 01:58 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 233 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 50 m 19 sec
Reputation Power: 6
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Thanks. I never knew when you MD5ed a column it had to be 32 characters long

Reply With Quote
  #5  
Old February 24th, 2003, 02:21 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
It sure does

I'm guessing that worked?

Reply With Quote
  #6  
Old February 24th, 2003, 10:09 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 233 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 50 m 19 sec
Reputation Power: 6
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Thumbs up

yes it did.

Reply With Quote
  #7  
Old February 27th, 2003, 07:53 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Thumbs up

Great! Glad I could help

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Two problems with my login script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway