SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict frankiehots's Avatar
    Join Date
    Jan 2002
    Location
    U.S.A. *Blue State*
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Backslashes Added When Using Apostrophes

    I am getting unwanted backslashes added into my php email form results whenever someone uses an apostrophe. Here is an example of the results:

    Name:
    Frank\'s

    Town:
    Manchester\'s

    Message:
    Test\'s

    I put in the apostrophe, but not the backslash. Anyone ever come across this? Thank you.

  2. #2
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes this is a standard PHP feature. When you retrieve use stripslashes.

    Moved to normal PHP.
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky


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
  •