Please help ...this is regarding alerts

Results 1 to 2 of 2

Thread: Please help ...this is regarding alerts

  1. #1
    Kevin Guest

    Default Please help ...this is regarding alerts

    thanx for showing concern.<BR><BR>actually i need to know how to display a message box saying htat the user&#039s login id is invalid.<BR><BR>i tried doing this using a msgbox() in an asp file using vbscript but i got an error saying that it&#039s an invalid property. <BR><BR>my problem now is i have a html page where the user has to key in his login id & password & if he types in the wrong one i have to dispaly a message saying it&#039s an invalid id . can u tell me how i can do this using alerts. please give the code.<BR><BR>thanx in advance<BR><BR>-kevin

  2. #2
    Kevin Guest

    Default RE: Please help ...this is regarding alerts

    Instead of using the msgBox embed some javascript inside the code that you are using to check the user name and password :<BR><BR>For example :<BR><BR>&#060;%<BR>If userPassword &#060;&#062; correctUserPassword Then<BR>%&#062;<BR> &#060;Script&#062;<BR> alert ("Invalid Password");<BR> &#060;/Script&#062; <BR>&#060;%<BR> Else<BR> do something<BR>End If<BR>%&#062;<BR><BR>Hope this helps<BR><BR>Kevin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts