title: Send Textfield value into PHP MySQL using xcode 8 (Objective-c) with or without click action?
body: <p>I just want to ask on how to <strong>send textfield value into mysql database</strong> in xcode using obj c <strong>without any click action</strong> or <strong>with click action</strong>? </p>
  
  <p>If the code below can retrieve and display JSON data from web server into xcode:</p>
  
  <pre><code>#import "ViewController.h"
  @interface ViewController ()
  @end
  @implementation ViewController
  
  @synthesize username,email;
  
  - (void)viewDidLoad {
      [super viewDidLoad];
  
      NSError *error;
      NSString *url_string    = [NSString stringWithFormat: @"http://localhost/test.php"];
      NSData *data            = [NSData dataWithContentsOfURL: [NSURL URLWithString:url_string]];
      NSMutableArray *json    = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&amp;error];
      NSDictionary *dict      = [json firstObject];
      NSString *data1         = [dict valueForKey:@"username"];
      NSString *data2         = [dict valueForKey:@"email"];
      email.text              = data1;
      pw.text                 = data2;   
  }
  @end
  </code></pre>
  
  <p>How to <strong>post username, email</strong> value into mysql database? Is it the same technique applied on post method? Because I do not want to use SBJson classes (if possible).</p>