0

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 when 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,

0

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.