Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

message to be shown on the page only in specific conditions

Status
Not open for further replies.

kavya

Programmer
Feb 21, 2001
83
US
I have a login page, where the user can login to enter a secure site. On the same page I have a link which says 'Register new password' on which the user can click and go to a page called 'registernewpassword.asp' where the user needs to make some valid entries to change the password.

User needs to enter these.

Username, oldpassword, newpassword, confirmnewpassword

if username and oldpassword dont match, it is redirected to the same page again.

if new password and confirmnewpassword don't match, then it is sent to the 'registernewpassword.asp' with a message on top saying 'Password mismatch'

The problem is when i click from the login page, to enter into 'registernewpassword.asp'

it opens up the page with the same message 'Password mismatch' which is supposed to show only when the user enters some wrong entries and then is redirected to the same page with the message.

Could some one help on this.

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top