Jump to content
php.lv forumi

Iesūtīt datus pa POST


forgetabout

Recommended Posts

$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

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

×
×
  • Create New...