【发布时间】:2009-05-27 13:45:53
【问题描述】:
我想将多个参数从 iphone sdk 传递到与 mySQL 数据库接口的服务器端 php。
我找到了一些有关如何执行此操作的答案,但我很难弄清楚如何包含多个参数。
我现在拥有的是
- (IBAction)sendButtonPressed:(id)sender
{
NSString *urlstr = [[NSString alloc] initWithFormat:@"http://server.com/file.php?date=%d", theDate];
NSURL *url = [[NSURL alloc] initWithString:urlstr];
[urlstr release];
[url release];
}
这适用于 1 个参数,但我正在寻找的是类似于
http://server.com/file.php?date=value&time=value&category=value&tags=value&entry=value
我该怎么做呢?
【问题讨论】: