0

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 can 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...

Community
  • 1
  • 1
user559142
  • 12,279
  • 49
  • 116
  • 179

2 Answers2

1

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/

MCannon
  • 4,011
  • 2
  • 16
  • 12
1

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.

David
  • 31
  • 5