Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


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

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

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

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') {


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!!  :)

RE: Logon...showModalDialog...check password...redirect....

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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!

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