Results 1 to 3 of 3

Thread: Retrieving data from Textbox's

  1. #1
    Join Date
    Sep 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Retrieving data from Textbox's

    Hi, I’m trying to place the data from a textbox within a form into a Variable, but I seem to be having problems. The problem is when it comes to a ‘ e.g. “it’s” or “don’t” the value of the string changes from “don’t” to a “don\’t”.

    Does anyone know anything that will stop this happening?

  2. #2
    Join Date
    Feb 2007
    Location
    Earth
    Posts
    133
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    yea, set your message equal to it self with stripslashes

    E.G. $message=stripslashes($message);
    http://www.insanecombat.com << bored? check out ma game

  3. #3
    Join Date
    Feb 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm using follwing:
    Code:
    if ($_POST) {
       $attr = array_map('stripslashes', $_POST);
       ...
    }
    and then using $attr variable as post variable


    ------------------
    [Signature Removed by a Moderator - You must have at least 5 posts before having a signature, and no images are allowed.]
    Last edited by tech_support; 10-06-2007 at 09:01 AM.

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
  •