xapsx
asked on
html and delphi
i need to autologin into a website, how can i insert all info and click the button login?
for example i want insert user and password and click to login on this form:
<form action="" method="post"><input type="hidden" name="PHPSESSID" value="ef08ebff14f3534f587 a9cc2f11f0 67a" />
<table width=369 border="0" cellpadding="0" cellspacing="0" align=center>
<tr>
<td align=left> <font size="2" face="verdana">
E-mail<BR>
<input type="text" name="user" size="30" autocomplete="off"><BR><br >
Password<BR>
<input type="password" name="pass" size="30"><BR><BR>
Copy the verification code that is shown on the right<BR>
<input type="text" name="verificationimg" size="5" maxlength="5" autocomplete="off"> <img src="ac8fa3e6.png">
<br>
<br>
<input type="submit" name="login" value="Sign-In Now"><BR><br>
</font>
</td>
</tr>
</table>
<br>
</font>
<br><br>
<font size="1" face="verdana">
</font></form>
and i can autoinsert the verification code?
like:
<input type="text" name="verificationimg" size="5" maxlength="5" autocomplete="off"> <img src="ac8fa3e6.png">
please guys let me know.. thanks
for example i want insert user and password and click to login on this form:
<form action="" method="post"><input type="hidden" name="PHPSESSID" value="ef08ebff14f3534f587
<table width=369 border="0" cellpadding="0" cellspacing="0" align=center>
<tr>
<td align=left> <font size="2" face="verdana">
E-mail<BR>
<input type="text" name="user" size="30" autocomplete="off"><BR><br
Password<BR>
<input type="password" name="pass" size="30"><BR><BR>
Copy the verification code that is shown on the right<BR>
<input type="text" name="verificationimg" size="5" maxlength="5" autocomplete="off"> <img src="ac8fa3e6.png">
<br>
<br>
<input type="submit" name="login" value="Sign-In Now"><BR><br>
</font>
</td>
</tr>
</table>
<br>
</font>
<br><br>
<font size="1" face="verdana">
</font></form>
and i can autoinsert the verification code?
like:
<input type="text" name="verificationimg" size="5" maxlength="5" autocomplete="off"> <img src="ac8fa3e6.png">
please guys let me know.. thanks
ASKER
ok then forgot the verification code, so , can i login with user and pass and click the button to log in?
thanks!
thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
really really thanks, u have helped me a lot!
just another question , do u use the ics components? bcuz i want do the same thing with them. but nop, really great example still thanks!
just another question , do u use the ics components? bcuz i want do the same thing with them. but nop, really great example still thanks!
No, I haven't used ICS. Sorry.
ASKER
geo, how can i control the ie?
for example like On WebBrowserDocumentComplete , can u give me tutorial? do u know any tutorial for learn how to use it? thx
for example like On WebBrowserDocumentComplete
Something like (search at MSDN):
uses ComObj, SHDocVw;
var
ie: Variant;
procedure TForm1.Button1Click(Sender : TObject);
begin
ie := CreateOleObject('InternetE xplorer.Ap plication' );
ie.Visible := true;
ie.Navigate('http://msdn.microsoft.com');
while ie.ReadyState <> READYSTATE_COMPLETE do begin
Sleep(100);
Application.ProcessMessage s;
end;
// here comes the code for DocumentComplete
ie.Document.forms.Item(1). qu.select; // search form is the second form on the page, i.e. index 1
ie.Document.forms.Item(1). qu.value := 'FindWindowEx'; // search for what
ie.Document.forms.Item(1). submit;
end;
Regards, Geo
uses ComObj, SHDocVw;
var
ie: Variant;
procedure TForm1.Button1Click(Sender
begin
ie := CreateOleObject('InternetE
ie.Visible := true;
ie.Navigate('http://msdn.microsoft.com');
while ie.ReadyState <> READYSTATE_COMPLETE do begin
Sleep(100);
Application.ProcessMessage
end;
// here comes the code for DocumentComplete
ie.Document.forms.Item(1).
ie.Document.forms.Item(1).
ie.Document.forms.Item(1).
end;
Regards, Geo
ASKER
thanks geo
I suspect that the verification code is shown on that picture "ac8fa3e6.png", right? The purpose of such construction is to prevent automatic logins. I don't think what you're asking is possible. Sorry.
Regards, Geo