Sign in to follow this  
Followers 0
Baloven

Insert data in IE-form if form noname

8 posts in this topic




Where's the form? I don't speak "@#%@VJJSVS" language.

Share this post


Link to post
Share on other sites

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>

...."

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

mmm, yeah I was going to try and find those for him but I couldn't navigate a site in Russian haha.

Debugbar definitely helps, as the other guy said.

Edited by Nevin

Share this post


Link to post
Share on other sites

Thanks Nahuel is that that is necessary, only User Name in inverted commas it is necessary to conclude:)

Share this post


Link to post
Share on other sites

Thanks Nahuel is that that is necessary, only User Name in inverted commas it is necessary to conclude:)

I don't understand :">

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