开发者

Send iPhone data to PHP file [duplicate]

开发者 https://www.devze.com 2023-03-16 14:21 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicates: iPhone: Post data to php page
This question already has answers here: Closed 11 years ago.

Possible Duplicates:

iPhone: Post data to php page

Passing Data From iPhone app to PHP file

What is the best way to send simple numerical and textual data from an iphone app to a php application?

Essentially what I am trying to do is to get the data input by users sent to a php file so it c开发者_如何学编程an be stored in a remote database.

What is the best way to send data from an iphone app to a php app so it can be stored in a MYSQL database...


assuming you know which fields are being sent, there is nothing to stop you sending the data via post, but make sure you validate/sanitise on the php side.

if you choose to go this route, I would have a look at http://allseeing-i.com/ASIHTTPRequest/


You will want to use NSURLRequest to post data to a PHP file on your server. There are also some libraries out there such as http://allseeing-i.com/ASIHTTPRequest/ which you could use instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消