vb访问网页

来源:百度知道 编辑:UC知道 时间:2024/06/14 21:03:37
用WebBrowser访问 http://sms.api.bz/fetion.php?username=您的移动飞信登录手机号&password=您的移动飞信登录密码&sendto=接收短信的飞信好友手机号&message=短信内容 这个网址
但是要求把要填写的电话号用TXT输入 问下这个程序怎么写?

我写的是WebBrowser1.Navigate "http://sms.api.bz/fetion.php?username=Val(Text1.Text)&password=Val(Text2.Text)t&sendto=Val(Text3.Text)&message=Val(Text4.Text)" 但是访问的直接是这个网址不调用Text里面添的访问 问下这个要怎么解决

你这是字符串连接有问题,正确的应该是这样:
WebBrowser1.Navigate "http://sms.api.bz/fetion.php?username=" & Val(Text1.Text) & "&password=" & Trim(Text2.Text) & "&sendto=" & Val(Text3.Text) & "&message=" & Trim(Text4.Text)