Jump to content

Two submit - IEFormSubmit


boy233
 Share

Recommended Posts

Hello, 

How do I select the submit?

Anybody know?!

<form method="post" action="register.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="form1">
....
....
<input type="submit" name="btnConfirm" value="Confirm" id="btnConfirm" disabled="disabled" class="aspNetDisabled Button" /> &nbsp;&nbsp;
....
....
<input type="submit" name="btnQuery" value="Query" id="btnQuery" disabled="disabled" class="aspNetDisabled Button" /> &nbsp;&nbsp;

</form>

 

Link to comment
Share on other sites

I found the solution! : D

Global $oIE = _IECreate("https://somewebsitehere", 1)


Local $username = _IEGetObjByName ($oIE, "username")
Local $password = _IEGetObjByName ($oIE, "password")
Local $button = _IEGetObjByName ($oIE, "login")
_IEFormElementSetValue ($username,"whatever username")
_IEFormElementSetValue ($password,"whatever password")

_IEAction ($button, "click")

 

Link to comment
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
 Share

×
×
  • Create New...