Link to home
Start Free TrialLog in
Avatar of xapsx
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="ef08ebff14f3534f587a9cc2f11f067a" />
    <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
Avatar of geobul
geobul

Hi,

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
Avatar of xapsx

ASKER

ok then forgot the verification code, so , can i login with user and pass and click the button to log in?
thanks!
ASKER CERTIFIED SOLUTION
Avatar of geobul
geobul

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xapsx

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!
No, I haven't used ICS. Sorry.
Avatar of xapsx

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
Something like (search at MSDN):

uses ComObj, SHDocVw;

var
  ie: Variant;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ie := CreateOleObject('InternetExplorer.Application');
  ie.Visible := true;
  ie.Navigate('http://msdn.microsoft.com');
  while ie.ReadyState <> READYSTATE_COMPLETE do begin
    Sleep(100);
    Application.ProcessMessages;
  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
Avatar of xapsx

ASKER

thanks geo