> function isEmail(str) {
> var emailFilter=/[EMAIL PROTECTED],4}$/;
> var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/;
> var error='';
>
> if (str.length <= 0) {
> error = 'Your emailaddress was empty, no desert for you.\n';
> }
>
> if (!(emailFilter.test(strng))) {
> error = 'Your emailaddress was invalid. Actually
> technically speaking it is not an emailaddress just an attempt to.\n';
> }else{
> if (strng.match(illegalChars)){
> error = 'How dare you use such characters in an
> attempt to validate an emailaddress.\n';
> }
> }
> return error;
> }
Is that your real-world error messages, Micha ;)
My fav has to be 'An error occurred. A big boy did it and ran away!'
--
dc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187870
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54