Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    456
    Thanks
    0
    Thanked 20 Times in 20 Posts

    mailform problem with stripslashes()

    Ok here's the problem...after form validation the key value is changed using stripslashes($value) but when I add supposedly new value to email I have to use stripslashes() again to get it to come out correctly. Otherwise all single quotes have a slash in front. Why?


    once validated prep:
    $data = stripslashes($value);
    $_POST[$key] = $data;


    Email Message:
    $Message = stripslashes($Message);

    Message:
    $Message
    NO Limits!! DHCreationStation.com
    ------------------------------------------------------------
    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    There's nowhere near enough information here to determine the cause.


  •  

    Posting Permissions

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