My script places slashes in my messages!

Discussion in 'PHP' started by lokielookies, Oct 16, 2006.

  1. #1
    Hi!

    I'm using the motivated Marketing Script to manage my membership sites.
    When I'm sending a mail to my members, while sending, the script places slashes (\) between some letters throughout the message.

    Worst is... those slashes are causing my links to fail to work.

    Anybody any ideas?

    Greetz!
    Mieke Janssens
     
    lokielookies, Oct 16, 2006 IP
  2. kemus

    kemus Guest

    Messages:
    487
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $foo=stripslashes($foo);

    Replace foo with the variable the message is in.
     
    kemus, Oct 16, 2006 IP
  3. lokielookies

    lokielookies Well-Known Member

    Messages:
    1,246
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    150
    #3
    :confused:

    Forgive me for not knowing, but what exactely do you mean by the variable the message is in?

    Greetz!
    Mieke Janssens
     
    lokielookies, Oct 16, 2006 IP
  4. Morishani

    Morishani Peon

    Messages:
    239
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The string that show's slashes.
    before you print/echo it to the page - you need to strip the slashes ;)
     
    Morishani, Oct 16, 2006 IP
  5. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can solve all this by turning off magic quotes.
     
    penagate, Oct 16, 2006 IP
  6. lokielookies

    lokielookies Well-Known Member

    Messages:
    1,246
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    150
    #6
    Turn Off Magic Quotes????
    :eek:
     
    lokielookies, Oct 16, 2006 IP
  7. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you use Google or any other search engine you will find out all about what magic quotes does, why it's a bad idea, and how to turn it off.
     
    penagate, Oct 16, 2006 IP