| |
lasw10
Posts: 2
Score: 0
Joined: 6/13/2003
From: United Kingdom
Status: offline
|
Hi - I am a bit new to all this stuff...though I am a VBA programmer by nature I can't quite get to grips to what's available to me using vbscript. In short my problem in this... I have a form, one of my controls has an onactivate event that then launches some vbscript Sub Login() lw = "4meoyg" I1 = InputBox("Please Enter Your NT Login eg lw","NT Login") If I1 = cancel then M1 = MsgBox("Do You Wish to Abort?",vbYesNo,"ABORT") If M1 = vbyes then MsgBox "Up Yours" Else Login End If End If I2 = InputBox("Please Enter Your Password","Password") If I2 = cancel then M1 = MsgBox("Do You Wish to Abort?",vbYesNo,"ABORT") If M1 = vbyes then MsgBox "Bugger" Else Login End If End If If I1 = "lw" and I2 <> "4meoyg" then MsgBox "You F'ing Liar" Else MsgBox "Thankyou," & vblf & vblf & "You Are Logged in as: " & I1 End iF End Sub Now what I want to do is say - if the pwd entered by the user doesn't match then I want to redirect them to another page...in VBA I would use a hyperlink.follow type thing - but this doesn't seem to work. In asp (which I can't use because the onactivate won't allow me to fire to an asp address unlike the form action: event) I would use response.redirect... Can anyone tell me what the syntax would be to go to a www address from within a vbscript code? ie instead of MsgBoxes "Bugger" and "You F'ing Liar" I want a redirect to a homepage...! This is driving me NUTS Hi, My Name is Luke And I'm an Addict... :(
|
|