Einzelnen Beitrag anzeigen

gene

Registriert seit: 11. Feb 2008
55 Beiträge
 
Delphi 7 Personal
 
#8

Re: Login auf loginscript per tool

  Alt 27. Feb 2008, 00:21
Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection,
  IdTCPClient, IdHTTP;

type
  TForm1 = class(TForm)
    IdHTTP1: TIdHTTP;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
  var user, pass, output : String;
begin
user := 'gene';
pass := 'gene2';
output := idHTTP1.Get('http://localhost/coding/php/trash/login-checker.php?user=' +user+ '&pass=' +pass);
if output = 'GOODthen
  ShowMessage('GOOD')
else ShowMessage('WRONG');
end;

end.
ich bekomme immer WRONG ;/
  Mit Zitat antworten Zitat