Android JSON HttpClient to send data to PHP server with HttpResponse

后端 未结 5 786
野性不改
野性不改 2020-11-28 23:53

I am currently trying to send some data from and Android application to a php server (both are controlled by me).

There is alot of data collected on a form in the a

5条回答
  •  我在风中等你
    2020-11-29 00:41

    Change

    (String url = "http://www.server.com/MainPage.php";)
    

    to

    (String url = "http://www.server.com/MainPage.php?";)
    

    Question mark at the end is necessary when you're trying to send parameters to php script.

提交回复
热议问题