点击ASPX页面中的按钮后,我必须执行一个URL
http://127.0.0.1/phptest/sendmail.php?id=+@USERNAME
使用VB.net。 @USERNAME
来自文本框。
答案 0 :(得分:1)
如果您需要从VBScript调用网址,请设置HTTP request:
username = ...
url = "http://127.0.0.1/phptest/sendmail.php?id=+@" & username
Set req = CreateObject("Msxml2.XMLHttp.6.0")
req.open "GET", url, False
req.send
If req.status = 200 Then
'request successful
Else
'request failed
End If
答案 1 :(得分:0)
在vbscript中尝试类似的东西:
Dim URL,ws,USERNAME
USERNAME = InputBox("Type your USERNAME","USERNAME","USERNAME")
URL = "http://127.0.0.1/phptest/sendmail.php?id=+@"& USERNAME &""
set ws = CreateObject("wscript.shell")
ws.run URL