Autor Beitrag
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 20.01.04 15:07 
Fehler Meldung "division by zero" in folgendem Code

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
uses IdMultipartFormData;

{ .... }

procedure TForm1.Button1Click(Sender: TObject);
var
  data: TIdMultiPartFormDataStream;
begin
  data := TIdMultiPartFormDataStream.Create;
  try
 
    data.AddFormField('param1', 'value1');
    data.AddFormField('param2', 'value2');
    data.AddFormField('param3', 'value3');

   
    Memo1.Lines.Text := IdHTTP1.Post('http://localhost/script.php', data);
  finally
    data.Free;
  end;
end;



kann mir jemand weiter helfen?

gruß

ixreme.de

P.S. ausgeführt wird der code wohl...auch richtig, es kommt nur diese Fehlermeldung...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 20.01.04 16:02 
also so mache ich nie nen post, weil das bei mir auch nie hingehauen hat !!!
ich mach das immer so wie in dem indy http demo.
ich hab das in der tut oder faq hier im forum gepostet !! schau dir das mal an ! das geht 100%ig !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Ist die Frage beantwortet? Das Problem gelöst?

Dann klicke hier, um das Thema entsprechend zu markieren!