SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: # in GET

Hybrid View

  1. #1
    Scary's On The Wall
    Join Date
    Apr 2003
    Location
    PA
    Posts
    518
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    # in GET

    There is a problem when trying to use # in a form that uses method=GET. As you may know, the # symbol is used to "jump" to certain parts of a page. For example: blah.htm#step2. Say you want to do something like this: profile.php?name=l#s3r. It won't work because the # is interpereted as a "jumper." Is there any way to solve this?

  2. #2
    SitePoint Wizard Chris82's Avatar
    Join Date
    Mar 2002
    Location
    Osnabrück
    Posts
    1,003
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at the functions urlendcode() and urldecode() . They are used to replace special characters to be used via GET

    http://www.php.net/urlencode
    http://www.php.net/urldecode


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
  •