title: Post data and get response from URL for login is not working
body: <p>In my application, I have login process and for that, I'm passing the <strong>username</strong> and <strong>password</strong> to <strong>php script</strong> and getting response. But the problem is, after getting the response I'm not able to move on to the next view controller or show the message.Need some guidance to resolve this issue.</p>
  
  <p><strong>This is my current code.</strong></p>
  
  <pre><code>    - (IBAction)submit:(id)sender 
        {
           NSString *url = [NSString stringWithFormat:@"http://indianpoliticalleadersmap.com/IOS/login/getres.php?username=%@&amp;password=%@",usern.text,pass.text];
           NSData *dataURL = [NSData dataWithContentsOfURL:[NSURL URLWithString:url]];
           NSString *strResult = [[NSString alloc] initWithData:dataURL encoding:NSUTF8StringEncoding];
           NSLog(@"%@",strResult);
  
           if ([strResult isEqualToString:@"succuss"]) 
           {
               UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@"Message" message:@"loged in" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];
               [alert1 show];
               [alert1 release];
           }
        }
  </code></pre>
  
  <p>If I print the response, I can see the success message but still I don't why its not working.I am not able to make out where I'm going wrong in my above code. </p>
  
  <p>Thanks.</p>