thanks :)
i have a site i may even use those error messages on!
---------- Original Message ----------------------------------
From: "Micha Schopman" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Thu, 16 Dec 2004 14:22:28 +0100
>Just a very simple one
>
>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;
> }
>
>
>Ofcourse you pick other messages to be returned ... at least I hope :)
>
>Micha Schopman
>Project Manager
>
>Modern Media, Databankweg 12 M, 3821 AL Amersfoort
>Tel 033-4535377, Fax 033-4535388
>KvK Amersfoort 39081679, Rabo 39.48.05.380
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188050
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54