关于IdHTTP中PostData空数符串的问题
野倾 2007-03-26 05:05:15 如在网页中提交的form信息如下:
<form method="post" action="submit.asp" name="form1">
<input type="hidden" name="IsTemp" value="">
<input type="text" name="score" value="120">
</form>
即存在一个空串,IsTemp
如果我在IdHTTP1->Post(url,postdata,ResponseStream)中提交,那么,
postdata串该怎么写?
A: postdata->add("IsTemp=''&score=120")
还是 B: postdata->add("IsTemp="+"&score=120")
还是 C: postdata->add("IsTemp=&score=120")
求点解!
A似乎不对,查到IsTemp.value='',
不知道B和C对吗?有什么区别?