注册 登录
编程论坛 VFP论坛

VFP用POST方式提交五个参数,要怎么传递?

ljy88888 发布于 2022-03-13 21:49, 950 次点击

用POST方式提交五个参数
URL示例:    http://gys.metatech.top:8004/?mod=baas&action=monitor&branchId=43&temperature=45&humidity=676&wendSpeed=87&windPressure=98
其中
branchId 巷道编号
temperature 温度
humidity 湿度
wendSpeed 风速
windPressure 风压

43,45,676,87,98 这五个值分为改为变量(参数)aa,bb,cc,dd,ee
要怎么传递?
2 回复
#2
laowan0012022-03-13 22:02
url="http://gys.metatech.top:8004/?"mod=baas&action=monitor&branchId=&aa&temperature=&bb&humidity=&cc&wendSpeed=&dd&windPressure=&ee"
#3
sdta2022-03-13 22:19
url = "http://gys.metatech.top:8004/?mod=baas&action=monitor&branchId=" + transform(aa) + "&temperature=" +transform(bb) + "&humidity=" + transform(cc) + "&wendSpeed=" + transform(dd) + "&windPressure=" + transform(ee)
1