I am trying to accomplish a very simple task of loading a WebView that has a variable. I am hoping to pass the variable from objective-c to a remote PHP file. The code I am using does not seem to work. The variable is valid, but I cannot get it to pass to the PHP file to be read by the WebView. Any help would be great!
NSString *userId = [[NSUserDefaults standardUserDefaults]
stringForKey:@"userId"];
[webViewFirst loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.website.com/page.php?userId=%@",userId]]];
Thank you very much!