Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Newbie Forms Question

Newbie Forms Question
Thread Tools
Mac Elite
Join Date: Sep 2000
Location: Baltimore
Status: Offline
Reply With Quote
Nov 20, 2003, 02:45 PM
 
I'd like to build a link to a secure directory through a very simple form; just two fields-- ID and password -- and a 'submit' button.

I'd like it so when someone enters his ID and password and hits the button it just links to the file in the secure directory (like http://username@password.domainname.com/secure_dir/file.html).

Is this possible without using ASP, PHP, PERL or anything to technical?
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Nov 21, 2003, 01:19 AM
 
if the directory is already secure on the server, the browser will generate the login form anytime you link to a file in the directory.

sample

if the directory is not secured on the server, you will have to use some sort of server-side language (ie PHP / ASP / JSP)...
     
Mac Elite
Join Date: Sep 2000
Location: Baltimore
Status: Offline
Reply With Quote
Nov 21, 2003, 08:55 AM
 
You're right. The files are already in a secure directory, and it so the browser does generate a login window.

I was just thinking about putting that right into the main page (see below) so it's very clear to users that you need a login/pass to get to that section. Is it possible with just straight HTML or maybe Javascript?

Thanks.

     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Nov 21, 2003, 01:47 PM
 
You would need some type of server side script to do it. Otherwise, the password verification would be visible to the user. Not good.
Travis Sanderson
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Nov 21, 2003, 01:57 PM
 
you could use a Flash widget to handle the login. still not 100% secure, but more so than a javascript fix
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:26 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2