Sign in to follow this  
Followers 0
NguyenViet

How to submit this form

3 posts in this topic

<form method="post" name="form1" id="s2t">

<table class="t3">

<tr><td colspan="2">Thiên Giới <img src="/sys/images/arrow1.gif" /> Sơn địa(94|17)</td></tr>

<tr><td colspan="2"><span class="atk1">Tấn công</span> (Thời gian:<span id="t1"></span>)<script>new Timer('t1',192*1000).showTime();</script></td></tr>

<input type="hidden" name="v" value="3796c5302498ff2e09e7ee24c8602060">

<input type="hidden" name="m" value="be2c7a82a86d4f3c818270c26f8fb5dd">

<tr><td colspan="1"><span class="atk1">Lúa yêu cầu</span>

<span> 0 </span></td></tr>

<tr><td>

<ul class="hero_info">

<li><a href="/hero?oid=10294" class="pic"><input type="hidden" name="heroid" value="10294"/><img src="/sys/avatar/9/4/10294.jpg?v=null" /></a><h3>[2] Ken Xin<span>(95/200)</span></h3> <div><img src="/sys/images/s/s_none.gif" /></div>

<div><img src="/sys/images/s/s_none.gif" /></div>

<div><img src="/sys/images/s/s_none.gif" /></div>

<div><img src="/sys/images/s/s_none.gif" /></div>

<div><img src="/sys/images/s/s_none.gif" /></div>

<div><img src="/sys/images/s/s_none.gif" /></div>

<div><img src="/sys/images/s/s_none.gif" /></div>

</li>

</ul>

</td></tr>

<input type="hidden" name="mapId" value="5950518">

<input type="hidden" name="type" value="2">

</table>

<p style="display:none;"><input type="submit" name="save" value="Xác nhận" id="fbbtn" class="btn" /></p>

<p><input type="button" value="Xác nhận" disabled=true id="fbsb" class="btn" onclick="document.form1.action='/s2t';document.getElementById('fbbtn').click(); this.disabled=true;" /></p>

</form>

how to submit this form !

Share this post


Link to post
Share on other sites



$oForm = _IEFormGetObjByName ($oIE, "form1")
$oSubmit = _IEGetObjByName ($oForm, "save")
_IEAction ($oSubmit, "click")

Or

_IEFormSubmit ($oForm)

Share this post


Link to post
Share on other sites

$oForm = _IEFormGetObjByName ($oIE, "form1")
$oSubmit = _IEGetObjByName ($oForm, "save")
_IEAction ($oSubmit, "click")

ur code can not auto submit this form, because this command only click Submit type button.

<p style="display:none;"><input type="submit" name="save" value="Xác nhận" id="fbbtn" class="btn" /></p> <----- Submit button is hide

<p><input type="button" value="Xác nhận" disabled=true id="fbsb" class="btn" onclick="document.form1.action='/s2t';document.getElementById('fbbtn').click(); this.disabled=true;" /></p> <-------------- This button set the action value for this form anh auto hide when we click.

I want to write a script auto click this button.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0