How to get the HTT_POST in php?
#1

I mean, it is $_POST['fieldname'] for a form for example, but at samp we have

PHP код:
HTTP(playeridHTTP_POST"kc.gd/hello.php"POST_DATA_HERE"MyHttpResponse"); 
For example if I want to send a string:

PHP код:
new string[10] = mystring
Do I use it like this:
PHP код:
HTTP(playeridHTTP_POST"kc.gd/hello.php"string"MyHttpResponse"); 
And if yes, how do I get the string in php? $_POST['string'] ? I assume this won't work because instead of the variable I can just write "some string".
Reply
#2

PHP / HTTP post string syntax is: var1=value1&var2=value2&var3=value3

and yes you should get it by php $_POST['var'] method.

if you pass a normal string php will just simple don't get / load it properly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)