How to save form data to web service


#1

Hello all
i am making a form in ionic 2 app and i want to submit details of form to a web service.i don’t have any idea how to do that.As i am new in ionic 2.


#2

Ionic 2 is based on Angular 2, so you just use the Angular HTTP Client.


#3

sir i am taking input from the user and want to send data to web service which is made with php.


#4

hello I think this article may help you.
Posting data to a PHP server
But as @mirkonasato said ionic 2 is based on angular 2, so you just have to look at HTTP documentation.
Use an HTTP Client to talk to a remote server.


#5

I wrote a tutorial showing how to use Ionic 2 and PHP to receive/send data: http://masteringionic2.com/blog/2016-12-15-using-php-and-mysql-with-ionic-2/

Hope this helps.