forgetabout Posted October 5, 2006 Report Share Posted October 5, 2006 Kāds varētu uzrakstīt mazu piemēru, kā lai, piemēram, adresē www.suņuburķšķis.lv iesūta datus $name un $x pa POST. Link to comment Share on other sites More sharing options...
andrisp Posted October 5, 2006 Report Share Posted October 5, 2006 (edited) <form method="post" action="http://www.bla.lv/fails.php"> <input type="text" name="name" value="bla" /> <input type="text" name="x" value="bla" /> <input type="submit" /> </form> Edited October 5, 2006 by andrisp Link to comment Share on other sites More sharing options...
bubu Posted October 5, 2006 Report Share Posted October 5, 2006 Manuāli, protams, slinkums atvērt... http://lv2.php.net/manual/en/function.fsockopen.php#68616 otrajā komentiņā jau ir atbilde. Link to comment Share on other sites More sharing options...
forgetabout Posted October 5, 2006 Author Report Share Posted October 5, 2006 $per='name=x&x=x'; $f=fsockopen('blabla.lv',80,$r,$r,3); $wr="POST /reg.php HTTP/1.1rnHost: site.rurnConnection: closernContent-Type: application/x-www-form-urlencodedrnContent-Length: ".strlen($per)."rnrn".$per; fputs($f,$wr); $txt=''; while (!feof($$f)) {$$txt.=fgets($f,1024);} fclose($$f); kaut kas šim līdzīgs vismaz ir? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted October 5, 2006 Report Share Posted October 5, 2006 kaut kas šim līdzīgs vismaz ir? Nee... tev tachu andrisp uzrakstija formu nolasa $bla1=$_POST['name']; $bla2=$_POST['x']; Tas patsc ja ar GET tik POST vietaa GET (ar GET padod caur URL) fails.php?bla1=tarmtarm&bla2=kautkas.... un nolasa kaa ieprieksh tik izmanto $_GET[]; Link to comment Share on other sites More sharing options...
Recommended Posts