txzz 发表于 2010-9-20 10:30:18

如何实现填写

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed">
<tr><td><textarea class="autosave max" name="message" id="e_textarea" tabindex="1" class="txt" style="height:300px"></textarea></td></tr>
</table>


源代码如上.用IEFormElementSetValue填写不了,不知道为什么.....

baikaifang 发表于 2010-9-20 10:54:57

提问请贴出你自己的源码,以及提交表单相关的网址

txzz 发表于 2010-9-21 13:08:14

http://www.bpshw.com/forumdisplay.php?fid=25这个论坛. 用户名:test1234 密码:test1234.
$var = FileRead("C:\Temp\myfile.txt")   
$oIE = _IECreate (http://www.bpshw.com/post.php?action=newthread&fid=25,1,1,0,0)
_IELoadWait ($oIE)
$oFrame = _IEFormGetObjByName($oIE, "postform")
$oMessage = _IEFormElementGetObjByName ($oFrame, "message")
_IEFormElementSetValue ($oMessage, $var)

就是不成功.帮忙看下.       发帖技术就不允许在论坛研究么?

txzz 发表于 2010-9-24 13:51:54

有人帮忙解决吗?

txzz 发表于 2010-9-30 16:10:48

有人帮忙解决吗?

liufenglg 发表于 2010-9-30 17:11:44

去掉form试试
页: [1]
查看完整版本: 如何实现填写