Enable characters like + or - in GET.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ajm113
    New Member
    • Jun 2007
    • 161

    Enable characters like + or - in GET.

    I created this form that submits well and I see the chracters like - or + in the address, but then when it seems I &_GET the address variables in the next page it looks that it gets rid of them when it echoes out...

    Does htmlentities or stripslahes have to do with this in php?


    Problem:


    It just shows C then C# for some reason...
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, AJM.

    # has special meaning in a URL. Use urlencode() to escape it for inclusion in a URL (http://php.net/urlencode).

    Comment

    • Ajm113
      New Member
      • Jun 2007
      • 161

      #3
      Originally posted by pbmods
      Heya, AJM.

      # has special meaning in a URL. Use urlencode() to escape it for inclusion in a URL (http://php.net/urlencode).
      Sorry for the late reply, but thanks! I got it going, idk if it was before you posted or after, but anyways thanks for replying anyways! :D

      Comment

      Working...