Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 3rd, 2005, 03:14 PM
branwieg branwieg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 17 branwieg User rank is Private First Class (20 - 50 Reputation Level)branwieg User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 2 m 36 sec
Reputation Power: 0
user login: where is the best place to put the form?

I am currently writing a blog/personal website using MySQL, Apache, and PHP. I want users to be able to log into a site with a user name/password. What is the best method to do this: having user name and password fields displayed on the header of each page (similar to the search form on the top of devshed) or simply placing a link for users to login which would link to a different login page (similar to ebay)? I have seen both styles before, I am curious to what everyone else's opinion is.

Reply With Quote
  #2  
Old April 3rd, 2005, 04:55 PM
paulh1983 paulh1983 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2004
Posts: 1,249 paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 14 h 15 m 3 sec
Reputation Power: 17
i would have thought that you would put the login at the front/main page and set sessions/cookies, and then on each page check if there are sessions and if not then redirect them to the login page.

Reply With Quote
  #3  
Old April 3rd, 2005, 10:16 PM
balford82 balford82 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 108 balford82 User rank is Private First Class (20 - 50 Reputation Level)balford82 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 19 h 32 m 42 sec
Reputation Power: 4
I personally like it available to me on all pages in a corner or along a sidebar. This way, whenever I decide to log in, the option is there. When I log in, I like it when the form disappears, and displays my basic user information in its placed, or a link to it.

Just my preference.

Reply With Quote
  #4  
Old April 4th, 2005, 07:57 AM
acidfourtyfive's Avatar
acidfourtyfive acidfourtyfive is offline
Since 439000000
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2004
Location: Canada
Posts: 793 acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 19 h 56 m 47 sec
Reputation Power: 90
Using PHP you could do both very easily
I like the login form in the corner idea

ebay has both

you might want to make a page for login as well as the login section corner thing in case people try to do member activities without being logged in

Can you do login without cookies, I thought of doing it with a database but that would be a lot of extra queries

Reply With Quote
  #5  
Old April 4th, 2005, 09:27 AM
paulh1983 paulh1983 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2004
Posts: 1,249 paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 14 h 15 m 3 sec
Reputation Power: 17
what u would have to do is create a login script.

query = select email, pass from wherever where email = $POST[email]......

run query

if !result {
redirect the user
}


create the form
}
then place this login script wherever he wants this!

Reply With Quote
  #6  
Old April 4th, 2005, 09:45 AM
paulh1983 paulh1983 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2004
Posts: 1,249 paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 14 h 15 m 3 sec
Reputation Power: 17
what u would have to do is create a login script.

query = select email, pass from wherever where email = $POST[email]......

run query

if !result {
redirect the user
}


create the form
}
then place this login script wherever he wants this!

Reply With Quote
  #7  
Old April 4th, 2005, 07:44 PM
branwieg branwieg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 17 branwieg User rank is Private First Class (20 - 50 Reputation Level)branwieg User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 2 m 36 sec
Reputation Power: 0
sessions

Quote:
Originally Posted by acidfourtyfive
Can you do login without cookies, I thought of doing it with a database but that would be a lot of extra queries


I believe PHP's sessions use cookies, but in the case where a user has disabled cookies in his/her browser, PHP will pass session ID's through the URL.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > user login: where is the best place to put the form?


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 5 hosted by Hostway
Stay green...Green IT