Autor Beitrag
marciboy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Mi 15.12.04 14:22 
Hallo

ich möchte mich gerne über eine Delphi Anwendung mit meinem Auktionshaus (php/sql) verbinden. Wie schaffe ich es, das ich erkenne das ich eingeloggt bin oder nicht.



ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TForm1.Button1Click(Sender: TObject); 
var 
  SL: TStringList; 
begin 
  SL := TStringList.Create; 
  try 
    SL.Add('mode=login'); 
    SL.Add('user='+Edit1.Text); 
    SL.Add('pass='+Edit2.Text); 
    IdHTTP1.Post('http://www.deineseite.de/login.php', SL); 
  finally 
    SL.Free; 
  end
end;



Gruß
Marc

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 15.12.04 18:04 
da wirst du wohl den zurückgelieferten HTML Code parsen müssen und selber nachschauen, ob du eingeloggt worden bist oder nicht !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
marciboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Mi 15.12.04 18:59 
Und wie mach ich das??

Gruß
Marc
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 15.12.04 20:56 
naja du musst auf charaktieristische merkmale achten, also wenn z.b. der login link nicht mehr im HTML Quelltext vorhanden ist, dann bite eingeloggt.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
marciboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Sa 18.12.04 14:35 
Hallo

ich glaube, das mein Problem bei den Sessions liegt.
Nur weiß ich nicht wie das funktioniert.

Gruß
Marc
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 19.12.04 12:23 
dann musst du den INDY cookie Manager auf dein formular setzten, damit die INDX kompo auch Cookies handeln kann.

_________________
In the beginning was the word.
And the word was content-type: text/plain.