In my code, I am trying to send some data to a PHP file
To add material to my SQL, I use the GET method.
So far, I needed to use a form on a website, but I would like to add data just by viewing it, for example:
http://server.com/add.php?user=some data here & message = latest data here
I am trying to use this code so far:
NSURL *add = [NSURL URLWithString:@"http://server.com/ios/add.php?user=iPhone App&message=%@", messageBox.text]; [messageView loadRequest:[NSURLRequest requestWithURL:add]];
However, Xcode tells me: "Too many arguments to invoke the method expected 1 have 2"
source share