Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Logon...showModalDialog...check password...redirect....

booboo0912 (Programmer)
11 Sep 02 16:39
hello!  i have a conglomerate of things going on, and i hope this is the right forum!  here's the situation...

a user clicks on a link to access the logon screen.  the logon screen is a showModalDialog window, with two text boxes and a submit button (inside form tag, action="admin.asp").  on the admin.asp page, i would like to check the password, and if the password is wrong, somehow send them back to the original logon screen.  is the password is correct, close the modal windown and send the user to the admin.asp page.  

the way i usually check the password is by doing the following:

<%
var pwd = Request.Form("password");

if(pwd != 'the password') {
    Response.Redirect('logon.asp');
}

%>

i know it's not the most ideal/secure way of password protection, but this is small beans stuff.  so my problem is trying to get back to the logon.asp page, in the modal state.

any ideas???  i always learn a lot from this forum, so if there's any other suggestions, i thank you in advance!!  :)

trollacious (Programmer)
11 Sep 02 21:13
Why not put a form with hidden variables in the page that opens up your modal dialog screen, and then when the button is clicked to submit the information, it's just a plain button that puts the info in the opener form and submits THAT page, then closes itself?  An incorrect login or password could redirect to the original page, with the link to open the modal dialog for logging in again.

There's no way you can have any security if you do your checking with client side JS, because that means the client computer has to have the secure information on it.  The only workable method is to use a list of hash values of logins and passwords, and then use the same formula in client side JS to create the numbers to check against the list, and proceed from there.
RonAckerman (ISP)
13 Sep 02 18:41
Check out Login Script Creator (4 different versions) I use ver 4. I think you'll find it quite useful.

http://members.iinet.net.au/~biab/login.htm

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close