Jump to content

FetchRemote postdata


RenanPG

Recommended Posts

Posted (edited)

Hello, 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) 
 
Edited by RenanPG
Posted

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

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...