RenanPG Posted February 14, 2015 Share Posted February 14, 2015 Hello everyone, how can i send post data to a php script? "?path=test" <-- Is it correct? fetchRemote("localhost/app/downloader/size.php", function(response, erro) -- stuff end, 100, "?path=test", false) Link to comment
Enargy, Posted February 14, 2015 Share Posted February 14, 2015 https://wiki.multitheftauto.com/wiki/FetchRemote Link to comment
RenanPG Posted February 14, 2015 Author Share Posted February 14, 2015 https://wiki.multitheftauto.com/wiki/FetchRemote This page doesn't have so much details about postdata. Link to comment
JR10 Posted February 15, 2015 Share Posted February 15, 2015 A quote from the wiki: If you are using fetchRemote to connect to a PHP script, you can use file_get_contents("php://input") to read the postData sent from this function. You can also use callRemote along with the PHP SDK. Read more: https://wiki.multitheftauto.com/wiki/CallRemote Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now