Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


hyprelink follow in vbscript

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,854
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> hyprelink follow in vbscript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 hyprelink follow in vbscript - 6/13/2003 4:41:51 AM   
  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

LASW10
Hi, My Name is Luke And I'm an Addict... :(
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> hyprelink follow in vbscript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts