$_GET['stuff'] problem

Discussion in 'PHP' started by Fracisc, Feb 25, 2009.

  1. #1
    I have a $_GET['stuff']. If stuff=men's style it will return men\'s style. How can I fix this?
     
    Fracisc, Feb 25, 2009 IP
  2. Syndrom

    Syndrom Peon

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sure you can.
    first check if magic quotes are on.
    
     if (get_magic_quotes_gpc()) {
      $str = stripslashes($str);
     }
    
    Code (markup):
     
    Syndrom, Feb 25, 2009 IP
    Fracisc likes this.
  3. Fracisc

    Fracisc Well-Known Member

    Messages:
    3,670
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    195
    #3
    Thank you very much! That worked!
     
    Fracisc, Feb 25, 2009 IP