Need help obfuscating email with PHP
-
Greetings – once again I need help from an experienced PHP coder.
I’d like to use either a short code (preferred) or a custom field, to enter a name, for example [phil] and have a function turn that into an email address that is obfuscated using a table of such names=>obfuscated email addresses that I can set up ahead of time in a separate text file or .php file…..
This is for a multi-user site for a non-profit org, and they will be entering events with event coordinator contact info – I don’t really want them entering an email address directly (because I also manage their email and don’t want to deal with high amounts of spam that could result from it), but they are not tech savvy enough to consistently remember to use an obfuscated email address (if they can even remember how to do it right in the first place).
So to make it easy for them I’d like them to just be able to enter a short code, or secondarily a custom field, and have a function that does a “lookup” and replaces the short code or custom field with the obfuscated email address. There is a limited list of event coordinators so I can easily maintain the list used to to the lookup from.
I hope I’m explaining this well enough….will elaborate if questions. Any suggestions?
- The topic ‘Need help obfuscating email with PHP’ is closed to new replies.