Help with HTTP.Post

Hello Everyone

I was wondering basically how I’m supposed to use Gmods Http.Post function. I want to pass in some variables to a PHP script, but I don’t really know how to use the function. And how would I access those variables in the PHP script; would it be $_POST[’(Name of Lua variable)’], or what?

Thank you

[lua]
http.Post( “url.com”, “key=val&key2=whatever”, function() end, function() end );
[/lua]

You can read more on the wiki.

You can access this in PHP by using…



echo $_POST[ "key" ];


Figured it out. Thank you though!