View Full Version : ? and " in GET url

11-09-2007, 04:22 AM
okay, here's my problem. I NEED to include a a couple question marks and quotes in a php GET url (like this:)

http://www.excalo.com/login-out.php?myVar=blah blah? "blah blah"

Can I do this? Do I just need to add a backslash(\) before each unusual character? That's kind of the way the problem would be fixed if it was a javascript problem.

Any answers at all are very welcome!

11-09-2007, 05:53 AM
Use urlencode() (http://php.net/urlencode) to make the url and urldecode() (http://php.net/urldecode) to undo it. You could also consider using POST or SESSIONs to pass the data to avoid this problem.