>Problem with a form

Discussion in 'PHP' started by ht125, Mar 12, 2011.

  1. #1
    hi
    first i must say that im not a coder so this may sounds a silly question for most of you
    i have a php file that shows a form, when submitted the values are passed to a 2nd php file that process the sent values

    one of the fileds of the forms asks for a URL, so is filled with something like http://domain.com

    the problem is that this value is then processed by the 2nd php file as
    http%3A%2F%2Fwww.domain.com and it doesnt work to be used as a redirect which is something the 2nd file should do

    question is: where may it be changed to that? i think is the form, but not sure.
    as tried looking for the answer with no luck
    btw, both php files have
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    if this matter, but not sure at all.

    if someone can help, it would be great
    thanks in advance
     
    ht125, Mar 12, 2011 IP
  2. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #2
    Are you using the $_GET and $_POST variable? They shouldn't need decoding.

    Anyway, try the urldecode function in php
     
    ssmm987, Mar 13, 2011 IP
  3. eleetgeek

    eleetgeek Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    htmlentities() and html_entity_decode

    Google it and learn it , it WILL solve your problem :)
     
    eleetgeek, Mar 14, 2011 IP