Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

app inventor 2 POST

I want to integrate a webviewer component in an appinventor app.

I want the app to POST something to already prepared PHP script. I do not want to use GET. So PHP on server looks like:

<?php echo $_POST['value']; ?>

My appinventor block looks like:

enter image description here

This is NOT working. Any help appreciated. Thanks.

EDIT: 2nd try. Thank you @YiWei. enter image description here

like image 590
Karel Borovský Avatar asked Oct 26 '14 10:10

Karel Borovský


2 Answers

add requestheaders:content-type:application/x-www-form-urlencoded and buildrequestData

enter image description here

like image 162
YiWei Avatar answered Sep 28 '22 01:09

YiWei


the webviewer only can do GET
this should work:

enter image description here

using the web component, you get the result back in the Web.GotText event enter image description here

see also the documentation

like image 23
Taifun Avatar answered Sep 28 '22 01:09

Taifun