posting data to web server

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)

anyone at all?

I need this, any help...

In your PHP code try using this instead:

1
print_r($_POST);

that returns

1
2
3
Array
(
)
views:831 update:2011/10/19 8:59:29
corona forums © 2003-2011