1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need to hide email before @

Discussion in 'Programming' started by altamash, Apr 14, 2012.

  1. #1
    Hi,

    Someone can please tell about that

    I have emails in database and I want to show on my website like that

    original email e.g: member@domain.com
    want to show e.g:
    ***@domain.com

    How is it possible I have to use str_replece if yes then how please help me.

    Thank You.
    Altamash
     
    altamash, Apr 14, 2012 IP
  2. raspms

    raspms Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i also want to know how it will be happen..thanks for sharing..
     
    raspms, Apr 18, 2012 IP
  3. 137th Gebirg

    137th Gebirg Active Member

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    I would do something like this:
    
    <CFSET inVar = "member@domain.com">
    <CFSET domainVar = GetToken(inVar, 2, "@">
    <CFSET outVar = "***@" & domainVar>
    <CFOUTPUT>#outVar#</CFOUTPUT>
    
    Code (markup):
    The function GetToken does wonders for things like this.
     
    137th Gebirg, Apr 24, 2012 IP