Jump to content

IE get form value


silvano
 Share

Recommended Posts

hi,

I'am a new baby and my english is not good, sorry

I'have search the solution in the forum, but I'don't understand

how I get the form value in IE

please post me one example

my ie form online:

<form name="testForm">

<INPUT type="hidden" name="value" value="123456" >

</form>

tks

Link to comment
Share on other sites

This should be what you need.

#include <IE.au3>

$sURL = "www.YourWebpage.com"
$oIE = _IECreate($sURL)
$oForm = _IEFormGetObjByName($oIE, "testForm")
$oInput = _IEFormElementGetObjByName($oForm, "value")
$sValue = _IEFormElementGetValue($oInput)
tanks very much Big_daddy!! ;)

...sorry, you help me once again?

the script for the input text form, set and send by autoit

<FORM name='form' action="script.php">

<input type='text' name=''setAutoit">

<input name="botton" type="submit" value="Send">

</form>

Link to comment
Share on other sites

I' am very happy ;)

this script work!! ...is correct?

$oIE = _IECreate ($sURL)

$oForm = _IEFormGetObjByName ($oIE, "form")

$oQuery = _IEFormElementGetObjByName ($oForm, "textName")

_IEFormElementSetValue ($oQuery, "12345")

_IEFormSubmit ($oForm)

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...