use HTTP to send variables to php.
#2

The callback must be in quotes and should not contain the round brackets. An example of that would be:
pawn Код:
HTTP(playerid, HTTP_POST, "http://xxx.com/index.php", ?, "onRequestDone");
Also, if I understand you correctly, you've no idea what to feed instead of the ?. I think this should give you an idea:
pawn Код:
HTTP(playerid, HTTP_POST, "http://xxx.com/index.php", "var1=data&var2=data", "onRequestDone");
edit
Ooh, and also, don't forget about the Sockets plugin by BlueG, which allows you to transport data between your gameserver and PHP even better.
Reply


Messages In This Thread
use HTTP to send variables to php. - by EviLpRo - 24.04.2012, 20:00
Re: use HTTP to send variables to php. - by AndreT - 24.04.2012, 20:04
Re: use HTTP to send variables to php. - by Vince - 24.04.2012, 20:05
Re: use HTTP to send variables to php. - by EviLpRo - 24.04.2012, 20:13
Re: use HTTP to send variables to php. - by MP2 - 24.04.2012, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)