Autor Beitrag
ghhe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: So 21.12.03 19:47 
HI,

ich wollt mal wissen wie ich es fertigstelle das ich ein wort an ein php script übergebe? ich mein klar das sieht dann blabal.com?abc=muh aus aber welche komponente muss ich dazu verwenden? wäre nett wenn ihr mir helft bin delphi anfänger *g*

MfG ghhe
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: So 21.12.03 20:16 
hallo und :welcome: im delphiforum,
dazu brauchst du keine extra komponente. sowas kann man ganz einfach selber programmieren:
alles was du brauchst ist die homepageadresse des php-documents und den parameter sowie dessen wert:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
uses ..., shellapi,...

...
procedure TForm1.Button1Click(Sender: TObject);
var adresse,variable,wert,completelink:string;
begin
adresse:='www.testseite.de/index.php';
variable:='abc';
wert:='123';
completelink:=adresse+'?'+variable+':'+wert;
ShellExecute(Application.Handle, 'open',
             PChar(completelink), nil, nil,
             SW_ShowNormal);
end;

wenn du mehrere variablen übernehmen willst empfiehlt es sich einen record zu erstellen welcher in einem array untergebracht wird, was jedoch programmiertechnisch etwas anspruchsvoller wäre.
wenn du sowas im sinn hast meld dich noch mal, dann programmier ich dir n kleines demo-programm. damit wird das wohl am besten rauskommen.
CU

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
Yooda
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 68



BeitragVerfasst: So 21.12.03 20:36 
Titel: vielleicht...
du kannst aber auch die Indy komponente idhttp verwenden.
mit:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
...
var variable:string;

begin

variable := 'DAS WIRD AN DIE VARIABLE GEHÄNGT';

        idhttp1.get('http://blablaa.de/script.php?abc=' + Edit1.Text);

      ODER

        idhttp1.get('http://blablaa.de/script.php?abc=' + variable);

end;
...
ghhe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: So 21.12.03 20:41 
ihr seit nett muss ich sagen ;) sehr entgegenkommend danke!

ich werd mal beides probieren aber ich denk mal mit indy isses leichter
danke euch schonmal

MfG ghhe