Forum Moderators: not2easy

Message Too Old, No Replies

Multiple log ins, using limited "real estate"

any ideas

         

Acternaweb

3:46 pm on Mar 31, 2004 (gmt 0)

10+ Year Member



Our site has several subsites that require logins. I was asked to offer login ability right on the home page but using limited space. Anyone else have this challenge?
Or know what others have done?

appreciate your help

Elijah

4:15 pm on Mar 31, 2004 (gmt 0)

10+ Year Member



You could use a drop-down box to choose which site to log into.

Something Like this:


<label for="site">Site</label>
<select name="site" id="site">
<option value="">Choose Site...</option>
<option value="site1">Sub site 1</option>
<option value="site2">Sub site 2</option>
</select>

Hope this helps, :)

Elijah

Acternaweb

4:55 pm on Mar 31, 2004 (gmt 0)

10+ Year Member



yeah no, that isn't quite what I am looking for. Each application has a login, so each drop down value would have it's own username and password. I don't want a new form for each drop down

korkus2000

6:57 pm on Mar 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[cj.com...] has changed its front end to have multiple logins. They use a js show hide technique. It is the slickest form of this I have seen in a while.

digitalv

7:05 pm on Mar 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What happens on the back-end when a user logs in? Session variable, cookie, redirect, etc.?

You could always make an "intermediate" page that (using the first Poster's example) looks for what site they are choosing to log into and redirects the user there with the login information.

In ASP this would be something like:
<%
username = request.form("username")
Password = request.form("password")
ServiceTheyWant = request.form("ServiceTheyWant")

If ServiceTheyWant = "ServiceA" Then
' authenticate, set session/cookie/whatever
response.redirect "/serviceapages"
ElseIf ServiceTheyWant = "ServiceB" Then
' authenticate, set session/cookie/whatever
response.redirect "/servicebpages"
Else
response.write "You didn't say where you wanted to go, dummy"
End If
%>

Then just do as many ElseIf's for every possible service. No need to have multiple forms on the same page.

Acternaweb

7:11 pm on Mar 31, 2004 (gmt 0)

10+ Year Member



Thanks korkus2000 that is great