Can someone do this, JS to PHP?

Discussion in 'PHP' started by terryuk, Feb 10, 2007.

  1. #1
    
    escape(unescape(location.href));
    
    Code (markup):
    Could anyone please put this into PHP?!

    :eek: :eek:
     
    terryuk, Feb 10, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    code doesnt seem right, but I think you want urlencode()
     
    krakjoe, Feb 10, 2007 IP
  3. rossdalangin

    rossdalangin Well-Known Member

    Messages:
    458
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    110
    #3
    here's the info you need --> http://www.hudzilla.org/phpbook/read.php/5_11_0
    these will help you:



    string serialize ( mixed value)

    mixed unserialize ( string input)

    string urlencode ( string text)

    string urldecode ( string encoded)
     
    rossdalangin, Feb 10, 2007 IP
  4. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #4
    Thanks for the suggestions, a friend helped me out
     
    terryuk, Feb 10, 2007 IP