How to mask email address without deleting them?

Discussion in 'PHP' started by manaila1, Mar 7, 2008.

  1. #1
    I have an ecard program that I want users on my site to be able to use to send ecards to other members. I have it set up so it automatically logs the user in and automatically fills in the other member's email. However, I don't want them to be able to see each other's email addresses when it auto fills in the those fields. Is there any PHP script I can use to hide the email addresses?:eek:
     
    manaila1, Mar 7, 2008 IP
  2. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That's easy.

    Let them see the members name.

    Then when they hit submit do a look on the member and populate the email address in php variable.

    This will not be seen client side.

    When the recipient gets the email you pass the FROM address as : User1 <donotreply@yourdomain.com>

    In the body of the message you can give them a link to REPLY to the card via your website once again calling by user name keeping the email address hidden at all times.
     
    LittleJonSupportSite, Mar 7, 2008 IP
  3. manaila1

    manaila1 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's exactly what I want to do! Thank you so much.

    Ok, I figured out how to make it show only the user id, but I'm a complete coding idiot. Could I possibly bother you to direct me on how to do a "look" to make it convert that id back?
     
    manaila1, Mar 7, 2008 IP