Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default How do you stop "\" being added when you submit forms?

    Well when you submit a form and display the infomation, when you use characters such as ' you get \'

    Its realy annoying

  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    stripslashes()

  3. #3
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    stripslashes()
    Thanks +Rep

  4. #4

    Default

    PHP Code:
    <?php
    $example 
    $_POST["example"];
    $example stripslashes($example);

    // OR

    $example stripslashes($_POST["example"]);

    ?>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •