I'm trying to include an array in a post to a PHP web service. It doesn't seem to be working and I believe it must be a formatting problem of some kind, but I don't know how to format it. I have the following iOS post string: (I know how to POST, that is not the problem.)
NSString *post = [NSString stringWithFormat:@"&action=post_data&start_time=%f&runners=%@&racename=%@&num_splits=%d", timeInterval, runners /* NSMutableArray */, raceName, numberOfSplits];
"runners" is the NSMutableArray and just passing it this way doesn't not seem to work correctly.
How should I pass an array? The PHP cannot be changed by me and the service is expecting an array. I would pass a JSON object to the service, but that is out of my control.
The PHP is just the following:
$runners = $_POST["runners"];