iphone - how to pass arguments to url (.php file) -


I need to pass two variables for this .. How can I pass them, I can play in my config playlist 13 and

Any body can show me the sample code. I am using it as

, I am able to get it, variable to To see "view = useragreement"  NSString * termsURL = [[[NSBundle main bundle] infoDictionary] objectForKey: @ "termsURL"]; NSURL * url = [NSURL URLWithString: [NSString stringWithFormat: @ "% @% @% @% @% @", termsURL, @ "? OwnerID =", ownerID, @ "? View =", user agreement]];  

but not working, I'm checking that parsing is successful or not but with this URL but failing ...

The code is taken directly from my app. What works for you

  NSString * post = [ NSString stringWithFormat: @ "ownerID = 13" and see = user's consent "]; NSDTA * PostData = [Post Data Usage Encoding: NSSEIITITING Encoding Permission Loansy Conversion: Yes]; NSString * postLength = [NSString stringWithFormat: @ "% d", [Postdeta length]]; // set up for website NSMutableURLRequest request * request = [[[NSMutableURLRequest alloc] init] autorelease]; [Request URL: [NSURL URLWithString: @ "http: //something.php"]]; [Set http system: @ "post"]; [Set set property: post length for http header field: @ "content-length"]; [Request Set Value: @ "App / X-www-Form-URLXode" forHTTPHeaderField: @ "Content-Type"]; [Set http: bb: postdata]; NSError * error; NSURLResponse * response; NSDTA * URLDATE = [sending NSRR connection synchronousRoom: Request Returning Response: and Action Error: and Edition]; NSString * result3 = [[[NSString alloc] initWithData: urlData encoding: NSUTF8StringEncoding] autorelease];  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -