Results 1 to 3 of 3
  1. #1
    Junior Member Array
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help getting parameters from url

    Hi all,

    I need to get a parameter from an url, but the GET variables are passed through urldecode().
    Some of my variables may have characters such as "+", ":", spaces, etc.
    When I use GET, all "+" are converted to spaces. I can use urlencode to get the "+" back, but also everything that was previously a space also turns into "+".
    Example:
    variable = abc+ c+:d

    Then I can get either:
    abc c :d
    or
    abc++c+:d

    but I want to get abc+ c+:d


    Would anybody know how to help me?

    Thanks!

  2. #2
    WTF Groupie Array
    Join Date
    May 2011
    Posts
    108
    Thanks
    1
    Thanked 1 Time in 1 Post


    Use rawurldecode() instead.

  3. #3
    WTF Senior Array
    Join Date
    Nov 2009
    Posts
    1,262
    Thanks
    2
    Thanked 11 Times in 11 Posts


    Quote Originally Posted by emerald View Post
    Use rawurldecode() instead.
    What does this do differently?


 

Tags for this Thread

Bookmarks

Posting Permissions

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