| |
need_helpp
Posts: 1
Score: 0
Joined: 4/13/2008
Status: offline
|
I highlighted my error in bold, wonder if any kind person can help me solve this, i just started in vb, thanks a lot for the help 1) how to string concate my strUser 2)when i use msgbox (StrPassword)......it prints Document.form1.password1 and not the password i entered <html> <head> <SCRIPT LANGUAGE="VBScript"> Option Explicit ON ERROR RESUME NEXT Dim strUser, strPassword function login() strUser = "testdomain\" + "Document.form1.userName" strPassword = "Document.form1.password1" msgbox(strPassword) end function </Script> </head> <body> <form name="form1" id="form1"> <table border="0" width="288"> <tr> <td width="80">User Name:</td> <td width="194"><input type="text" name="userName" size="20"></td> </tr> <tr> <td width="80">Password:</td> <td width="194"><input type="password" name="passWord1" size="20"></td> </tr> <tr> <td width="288"><input type="button" value="enter" onclick="login()"></td> <td><input type="reset"></td> </tr> </table> </form>
|
|