Jump to content

Insert data in IE-form if form noname


Baloven
 Share

Recommended Posts

It is a village in Russian (CP-1251) on this page 2 of the form (in one form a line of search in the left column below, and in the second tabulared form in the center of page - two fields of input Login and passwd). Here also interests as to enter data into the second form at that that both forms have no names.

source code

form 1 in code

"...

<form method=GET action=/search.html>

<td width=100%><img src="/i/b.gif" width="1" height="16" alt="" border="0"><br>&nbsp;<input type=text style="font-size: 9pt; fontsize: 8pt;" name=q size=12>&nbsp;<input type="submit" style="border-style: none; border: none; background-color: #ffffff; bgcolor: #ffffff; font-size: 9pt; fontsize: 8pt;" value="Искать"><br><img src="/i/b.gif" width="1" height="3" alt="" border="0"><br></td>

</td></form>

...."

Form 2 in site code

"......

<table cellpadding="0" cellspacing="5" align="center" border="0" id="tblform">

<tr><th colspan=2>Вход</th></tr>

<tr><form method=post name="f1">

<td><b>Login:</b><br></td>

<td><input type="text" name="login" value=""><br></td>

</tr>

<tr>

<td><b>Пароль:</b><br></td>

<td><input type="password" name="passwd" value=""><br></td>

</tr>

<tr>

<td><input type="submit" name="Log" value="Войти"><br>

</td>

<td align=right>

<a href="password.html">Вспомнить пароль</a><br>

</td>

</form>

</tr>

</table>

...."

Link to comment
Share on other sites

I had a similar problem when i tried to press a button on a form without any name, you can read about it here, maybe that can help a bit, i dunno..... <_<

Link to comment
Share on other sites

I get the 404 error. (Page not found) and it takes me to some site in russian.

I recommend you download DebugBar. It will make this a lot easier <_<

And, if I'm not wrong, you don't really need the name of the form as long as you have the names of the objects. Then you can use:

$oUser =_IEGetObjByName($oIE,"login")
$oPass =_IEGetObjByName($oIE,"passwd")
$oSubmit = _IEGetObjByName($oIE, "log")
_IEFormElementSetValue ($oUser, User Name)
_IEFormElementSetValue ($oPass, 'my-password')
_IEAction ($oSubmit, "click")
Edited by Nahuel
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...