Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Location
    AZ, USA
    Posts
    685
    Thanks
    6
    Thanked 46 Times in 46 Posts

    Question ? and " in GET url

    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!
    Last edited by binaryWeapon; 11-09-2007 at 03:23 AM. Reason: wrong use of [php] tags

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Use urlencode() to make the url and urldecode() to undo it. You could also consider using POST or SESSIONs to pass the data to avoid this problem.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •