Toms Posted March 17, 2004 Report Share Posted March 17, 2004 Programmeeju uz Delphi. Lai izpildiitu funkciju/proceduuru, man atliek tikai zem attieciigaa event (Kaut vai Button.OnClick) uzraxtiit proceduuras nosaukumu (pienjemot, ka proceduuru esmu uzrakstiijis atsevishkji). Un lietotaajs nospiezhot pogu izpildiis to proceduuru. Man nepielec - es gribu uztaisiit ieksh PHP (tikko saaku apguut) linku, uz kura uzspiezhot izpildiitos attieciigais php script... Kaa to izdariit/vai tas ir izdaraams tik vienkaarshi.. Izmekleejos visaados forumos, bet atb taa arii neatradu... Jau ieprieksh - thanx! Link to comment Share on other sites More sharing options...
AcidRain Posted March 17, 2004 Report Share Posted March 17, 2004 Spiežot uz linka, ja tas links piemeram ir ardesēts uz links.php, tu izsauc php skriptu links.php. Bet vai tu gadījumā nedomāji formas ? Link to comment Share on other sites More sharing options...
Aleksejs Posted March 17, 2004 Report Share Posted March 17, 2004 2 Toms: tev jāskatās, kā to izdarīt JavaScriptā, nevis PHP. <html> <head> <script> function aa(){ alert('Funkcija!'); } </script> ... </head> <body> ... <input type="button" value="Poga" onclick="aa()"> ... </body> </html> Tas gan tev neliedz ar PHP palīdzību ģenerēt nepieciešmo JavaScriptu, kuru klients pēc tam varēs izpildīt. Link to comment Share on other sites More sharing options...
Toms Posted March 18, 2004 Author Report Share Posted March 18, 2004 OK, man shits sanaak. Tagad veel jautaajums - HTML ir shita: <a href="download.php">proga</a> Kaa tas izskatiitos uz PHP? Tjipa - uzspiezhot uz proga buutu jaaizpildaas download.php, kas savukart palaizh to "progu" kacaaashanai bez liekiem jaut. downloads.php vietaa vareetu noraadiit arii "proga.zip" (piemeeram), bet man vajag biski savaadaak.. Link to comment Share on other sites More sharing options...
рпр Posted March 18, 2004 Report Share Posted March 18, 2004 download php izskataas pameeram shaadi: header ('contnent-type: aplicationa/zip'); header('disposition: attachment; filename=fails.zip'); readfile('fails.zip'); Link to comment Share on other sites More sharing options...
Recommended Posts