title: Pass arguments from iphone to php page
body: <p>the problem i am face right now is i can't pass a variable from iphone to php page.First i want to pass the country name to php page from iphone.</p>
  
  <p>This is the php code:</p>
  
  <pre><code>$coname=$_POST["c_name"];
  
      $con = mysql_connect("url","username","password");
          if (!$con){die('Could not connect: ' . mysql_error());}
              mysql_select_db("Appiness", $con);
  
      header("Content-Type: text/xml");    
      $bilgi= mysql_query("SELECT age,wname,slid,sex FROM user WHERE user.c_name='".$coname."'");
      while($sutun= mysql_fetch_array($bilgi))
      {
          echo $sutun["age"];
          echo $sutun["wname"];
          echo $sutun["sex"];        
          echo $sutun["slid"];    
      } 
  
      mysql_close($con);
  </code></pre>
  
  <p>this is the part i 've call the php page in xcode</p>
  
  <pre><code> NSString *country=[[NSUserDefaults standardUserDefaults]objectForKey:@"namecountry"];
  //url's
  NSURL *url = [NSURL URLWithString:@"http://www.trevesstudios.com/get.php"];
  ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
  
  [request setPostValue:country forKey:@"c_name"];
  [request setRequestMethod:@"POST"];
  [request setValidatesSecureCertificate:NO];
  [request setDelegate:self];
  [request startSynchronous];
  
  response = [request responseString];
  NSLog(@"%@",response);
  </code></pre>
  
  <p>Can anyone help me for why this code is not working btw when i try to change the WHERE c_name='France' it works the the problem is the variable.Can anybody helpme?</p>