Passing " and ' in GET

Discussion in 'PHP' started by enchance, Oct 10, 2007.

  1. #1
    How do you pass " and ' so there won't be any problems sending it through GET?
     
    enchance, Oct 10, 2007 IP
  2. kkrizka

    kkrizka Peon

    Messages:
    223
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have to encode it first, I use urlencode(); in PHP
     
    kkrizka, Oct 10, 2007 IP
  3. enchance

    enchance Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What's the deffierence between urlencode() and rawurlencode()?
     
    enchance, Oct 10, 2007 IP
  4. theOtherOne

    theOtherOne Well-Known Member

    Messages:
    112
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #4
    Basically they are the same, except for the following:
    - urlencode encodes a space as a +
    - rawurlencode encodes a space as %20

    Every other character/sign is replaced in the same way in both functions, as far as I know.
     
    theOtherOne, Oct 11, 2007 IP