There are two types of service that can be used to send data to a web server:
Synchronous NSURL Request
Asynchronous NSURL Request
If you want to only post data to web server then use an asynchronous request because it works in the background and doesn't block the user interface.
NSString *content = @"txtfiedl.text=1";
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"http://www.ex.com/yourfile.php"]];
[urlRequest setHTTPMethod:@"POST"];
[urlRequest setHTTPBody:[content dataUsingEncoding:NSISOLatin1StringEncoding]];
[NSURLConnection connectionWithRequest:request delegate:self];