大家看看这样的评论怎么发? ( 积分: 100 )

  • 主题发起人 zzandyzh
  • 开始时间
Z

zzandyzh

Unregistered / Unconfirmed
GUEST, unregistred user!
网址:http://active.chinainfo.gov.cn/ChinaInfo/comment/comment_pub.jsp?cmid=2153
我想用Idhttp给这个地址发评论,该怎么写啊?

<form name="myform" action="comment_insert.jsp" method="post">

<input type =hidden size="16" name="cmid" style="font-size: 14.9px" value="2153">
<table cellSpacing="0" cellPadding="0" width="599" border="0" height="304">
<tr bgColor="#81c581">
<td class="a" colSpan="2" height="24" width="599">
 <span lang="zh-cn"><img border="0" src="../images/sy_logo.gif" width="10" height="10"></span>
<span lang="zh-cn">你的留言</span></td>
</tr>

<tr>
<td width="476" bgColor="#B5DDB5"height="40" style="font-size: 14.9px"> <input type="checkbox" value="1" name="niming" style="font-size: 14.9px">匿名发表
 笔名: <input size="16" name="name">  </td>

</tr>
<tr>
<td width="476" bgColor="#B5DDB5" height="205" style="font-size: 14.9px">
<textarea class="g" name="content" rows="12" cols="82"></textarea></td>

</tr>
<tr>
<td align="middle" bgColor="#B5DDB5" style="font-size: 14.9px">
<p align="center">
<input onClick="check();" type="button" value=" 发送 " name="button" style="font-size: 14.9px">
<input type="reset" value=" 清除 " name="reset" style="font-size: 14.9px">
<a href=javascript:history.back()> 返回</a>
</p>
</td>
</tr>
</table>
</center>

</form>
 
网址:http://active.chinainfo.gov.cn/ChinaInfo/comment/comment_pub.jsp?cmid=2153
我想用Idhttp给这个地址发评论,该怎么写啊?

<form name="myform" action="comment_insert.jsp" method="post">

<input type =hidden size="16" name="cmid" style="font-size: 14.9px" value="2153">
<table cellSpacing="0" cellPadding="0" width="599" border="0" height="304">
<tr bgColor="#81c581">
<td class="a" colSpan="2" height="24" width="599">
 <span lang="zh-cn"><img border="0" src="../images/sy_logo.gif" width="10" height="10"></span>
<span lang="zh-cn">你的留言</span></td>
</tr>

<tr>
<td width="476" bgColor="#B5DDB5"height="40" style="font-size: 14.9px"> <input type="checkbox" value="1" name="niming" style="font-size: 14.9px">匿名发表
 笔名: <input size="16" name="name">  </td>

</tr>
<tr>
<td width="476" bgColor="#B5DDB5" height="205" style="font-size: 14.9px">
<textarea class="g" name="content" rows="12" cols="82"></textarea></td>

</tr>
<tr>
<td align="middle" bgColor="#B5DDB5" style="font-size: 14.9px">
<p align="center">
<input onClick="check();" type="button" value=" 发送 " name="button" style="font-size: 14.9px">
<input type="reset" value=" 清除 " name="reset" style="font-size: 14.9px">
<a href=javascript:history.back()> 返回</a>
</p>
</td>
</tr>
</table>
</center>

</form>
 
這沒有什麼難,只事要你對這個網站內部連接是怎樣構成的,也就是要通過<form name="myform" action="comment_insert.jsp" method="post">提交數據到裡面就OK了。
 
谢谢,已经解决了,也能发送成功了,但我想把返回的内容显示在Memo中,但为什么执行完后老出现一个对话框“HTTP/1.0 302 Object moved”,而且Memo中不显示任何东西怎么去掉啊?
不好意思,还有几个问题想问问大家!
1.我在提交另一个外国网站时,老提交不成功,老提示说“HTTP/1.0 404 NO Found”,是怎么回事!在提交内容时是不是有的网站与Cookie有关啊?
2.怎么判断要提交数据的网站与Cookie有关啊?
 
成功过吗?
 

Similar threads

I
回复
0
查看
735
import
I
I
回复
0
查看
2K
import
I
I
回复
0
查看
2K
import
I
I
回复
0
查看
608
import
I
I
回复
0
查看
1K
import
I
顶部