Hi,
I am currently trying to set up my app to send data to my webserver using the network.request() function.
Currently, on my main.lua I have this:
[lua]local function networkListener( event )
if ( event.isError ) then
print( “Network error!”)
else
print ( "RESPONSE: " … event.response )
end
end
local params = {}
email = “hello”
params.body = email
network.request( “http://127.0.0.1/new/verify.php”, “POST”, networkListener, params)[/lua]
On my PHP file, I have
[php]
echo ($_POST);
[/php]
However, I do not know what the data is being sent as, and therefore have no idea what to put in the square brackets after POST – does anyone know?
Thanks
[import]uid: 24641 topic_id: 16252 reply_id: 316252[/import]