开发者

iphone php script

开发者 https://www.devze.com 2023-03-22 04:49 出处:网络
I\'m trying to send information from obj-c to my php script, but as I\'ve learned, I can\'t send text that has _\'s in it. I\'m using the $_GET[\'\'] function in PHP and it won\'t accept wh开发者_高级

I'm trying to send information from obj-c to my php script, but as I've learned, I can't send text that has _'s in it. I'm using the $_GET[''] function in PHP and it won't accept wh开发者_高级运维en I send it spaces.

For example, when I send the data to the url in objective-c I get this:

http://test.com/test/test.php?url=http://test.com/test/images/2011-07-22/542.jpg&username=iMac&comment=test comment with space

Any recommendations? Cheers,

Filip,


URL Encode it. That's what it's for.

0

精彩评论

暂无评论...
验证码 换一张
取 消