removing slashes when using mail()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mr_burns

    removing slashes when using mail()

    Hi,

    I have been sending emails using PHP with the mail() command/method.
    When I send them tho it adds slashes, for example:

    'hi guy's' gets sent as 'hi guy\'s'

    Why is this? How do I sort this? Cheers

    Burnsy
  • Marcel

    #2
    Re: removing slashes when using mail()


    "mr_burns" <bissatch@yahoo .co.uk> schreef in bericht
    news:651c6ea9.0 409140524.282a0 432@posting.goo gle.com...[color=blue]
    > Hi,
    >
    > I have been sending emails using PHP with the mail() command/method.
    > When I send them tho it adds slashes, for example:
    >
    > 'hi guy's' gets sent as 'hi guy\'s'
    >
    > Why is this? How do I sort this? Cheers
    >
    > Burnsy[/color]


    Probably magic_quotes is set to ON on the server.... use stripslashes() to
    remove the slashes...

    Marcel


    Comment

    Working...