tellnet 发表于 2010-3-16 16:13:39

form 查找name名字返回为0的问题

<form method="post" onsubmit="return doRegsRegisterNowCheck()"> 没有name和id

此form里有一个下拉菜单

<td><label for="registration_html_registration_options" class="required">选择选项: </label> &nbsp;&nbsp;&nbsp;
                                        <select name="PAGE" id="PAGE" tabindex="2" onchange="doRegisterButtons()">
                                                        <option value="register">立即注册</option>
                                                        <option value="registerlater">以后提醒我(7 天后)</option>
                                                        <option value="neverregister">不注册</option>

我想选择第三项“不注册”,以后,自动会出现
<input name="Continue" type="submit" accesskey="c" id="registration_html_rightbutton_continue" tabindex="29" title="继续" value="继续" class="hidden">

这个继续按钮完成 注册过程

我参考了一些案例,然后这样写的,因为form没有name,这样写不起作用
$oIE = _IEAttach ("Adobe Design Suite Premium CS3", "Embedded")
$oForm = _IEFormGetObjByName ($oIE, "")
$oQuery = _IEFormElementGetObjByName ($oForm, "PAGE")
_IEFormElementOptionSelect ($oQuery ,"neverregister", 1 ,"byValue")

请问大侠们,遇到这种情况,怎么处理呢?

masterpcc 发表于 2010-3-16 19:28:32

不需
;$oQuery = _IEFormElementGetObjByName ($oForm, "PAGE")
可以改成
$oQuery = _IEGetObjById ($oIE, "PAGE")
我是新手!!正在学习中
页: [1]
查看完整版本: form 查找name名字返回为0的问题