View Full Version : need validators
This is great! However, anyone have javascript validators to verify all emails in the text area after importing? Also, anyone have PHP code to validate email after submission? Anyway to modify this tool so it ONLY imports email addresses?
kas
May 10th, 2006, 07:11 PM
For validators, check out www.plaxo.com/css/m/js/nlp/rlp.js -- this is what we use to parse up the name/email list on our eCard site. You just call new Plaxo.NLP.RecipientListParser().parse(textAreaText ) and you get back an array of name/email/is-valid arrays, plus a second array of the extra leftover (garbage) text. Check out the js file for more info, or play with it and see how it works for you. It should basically do what you need--you get the names and emails out, and it tells you what else is bad in there, which you can ignore or report as an error.
Kathy
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.