Click to See Complete Forum and Search --> : Email Verification Using Cookies
Thailand_for_YO
09-11-2003, 05:54 AM
While surfing through the javascript.internet.com, I found an interesting script used in their subscription service that verifies the subscriber's email address using a cookie.
Unfortunately, I wasn't able to find that script among the free scripts they offer. And since it is first time I saw such script, I would like to ask how reliable it is to use cookies for email address verification.
I would like to implement it in the various forms on my site.
Any comments would be appreciated.
AdamGundry
09-11-2003, 12:37 PM
Cookies are just a means of storing small amounts of data on the user's computer. They can't verify the validity of an email address, which I believe is what you are asking. They can store it, but it would be of little use as cookies are only available when the user actually accesses your site.
If you could be more clear about what you want to do, I might be able to help you further.
Adam
Thailand_for_YO
09-11-2003, 02:20 PM
Thanks for the reply AdamGundry,
You will probably better understand my point by checking out the souce code of javascript.internet.com Web site (any page that have a subcription service on it. It's a small table located near the bottom.).
What I want is to find a reliable option to validate an Email syntax in forms on my site. The CGI script I'm currently using allow for submission of invalid emal addresses. So, I want to alert visitors on mistakes they make during form submission.
AdamGundry
09-11-2003, 02:43 PM
You don't need Javascript or cookies for this, it should be done by the CGI script. If your current CGI script doesn't do it, find one that does, or modify it.
If you want a JS address checker as a first test (which will fail for those users with JS disabled, about 13%), you can use one like this: http://www.codelifter.com/main/javascript/emailaddresschecker1.html
Adam
PeOfEo
09-11-2003, 04:09 PM
You could also make them enter their email two times, thats if they make an error, and then compare the two text boxes.
AdamGundry
09-12-2003, 10:22 AM
That's one of the checks the link I posted makes.
Adam
PeOfEo
09-12-2003, 01:39 PM
oh