In an Objective-C method I use this
NSURL *url = [NSURL URLWithString:@"http://xxxxxx.com/test/test.php?id=3333&vote=1"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setDelegate:self];
[request startAsynchronous];
How do I write a PHP script to receive those two arguments and pass them into local variables? In the end I would imagine something like $id and $vote which would equal 3333 and 1 respectively.
Here’s how it’s done :
but make sure you do some SQL injection proofing before inserting those values into a database