you need to create a php script that take input on get\post and write it.
You can use NSURLConnection or ASIHTTPRequest to do a http request to that php script (you need to add data in POST or GET as said)
you can see some code here:
WebService [How-To]