you know how when you post some details,
it posts to address:
http://www.hello.com/cgi.cgi?user=hello&pass=hello
how can i retrieve everything after "?"
inside an activex document??
please help someone??
i thought it might be command$ ??
Printable View
you know how when you post some details,
it posts to address:
http://www.hello.com/cgi.cgi?user=hello&pass=hello
how can i retrieve everything after "?"
inside an activex document??
please help someone??
i thought it might be command$ ??
See the tip
"Parse out a section from a delimited string"
(http://www.vbsquare.com/tips/tip391.html)
it does not directly answers your problem
but it's related...
I experimented and I came out with the following:
hope this works...:)Code:
Function fxnGetString(sAddr) as string
Dim varLen as integer
for varLen = Len(sAddr) To 1 Step -1
if Instr("?", MID$(sAddr,varLen,1)) then exit for
next varLen
fxnGetString = right$(sAddr, len(sAddr) - varLen)
End Function
feel free to adopt...:)
You can simply do something like this:
That's it.Code:Dim strText As String
strText = "http://www.hello.com/cgi.cgi?user=hello&pass=hello"
strText = Mid(strText, InStr(strText, "?") + 1)
MsgBox strText
thanks,for all that input,
but think of cgi.cgi as a visual basic document
i would like to know, how to get the details, that have been posted to the vbd file :)