Hi!
See, I have a big problem!
I try to store the text of a textfield in a variable, and that variable send via GET to a php document. Php document and I tried it and it works perfectly. On the other hand if I try sending a text variable (local variable1 = “hello world”) gives me no problem sending by GET, however, when I try to send what the user types in the string fails me and I can send nothing!. Please help!
Here’s the code:
[code]
local metenombre
local function enviar_variables()
local URL = “http://miweb.com?variable1=” …
metenombre … “&variable2=” …score
network.request( URL, “GET”)
end
–BOTÓN COMPARTIR
share = display.newImageRect(“share.png”, 200, 100)
share.x = 200; share.y = 325
share:addEventListener( “touch”, enviar_variables )
– INSERTAR NOMBRE
metenombre = native.newTextField( 170, 185, 140, 30 )
metenombre.text = nombre
[code]
Thank you very much to everyone from now. [import]uid: 98258 topic_id: 32606 reply_id: 332606[/import]