Skip to main content
Participant
January 12, 2007
Question

Verifying Email Address?

  • January 12, 2007
  • 7 replies
  • 398 views
Hi, I'm having trouble figuring out how you make it so that when you type in an email address in a textfield for a form on dreamweaver, the email address is a valid one and not just some random mix of letters or numbers. Any suggestions is appreciated. Thank you
This topic has been closed for replies.

7 replies

Inspiring
January 12, 2007
Yaromat's email validation is a) client-side, so ineffective for the kinds
of things we have been discussing, and b) rudimentary - I believe it only
checks for the the presence of the "@" character. But, it's a start.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"RichardODreamweaver" <webforumsuser@macromedia.com> wrote in message
news:eo84h9$8ak$1@forums.macromedia.com...
> For those not so experienced in code...
>
> I may be way off course here but Yaromat.com do a great free form checker
> DWMX
> extension that validates many field types, including e-mail addresses
>
> When you create a form, go to the design/behaviours menu and select the
> simple
> wizard from the yaromat menu.
>


Inspiring
January 12, 2007
For those not so experienced in code...

I may be way off course here but Yaromat.com do a great free form checker DWMX extension that validates many field types, including e-mail addresses

When you create a form, go to the design/behaviours menu and select the simple wizard from the yaromat menu.
Inspiring
January 12, 2007
Yeah - thanks!

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Joe Makowiec" <makowiec@invalid.invalid> wrote in message
news:Xns98B64A197C56DmakowiecatnycapdotrE@216.104.212.96...
> On 12 Jan 2007 in macromedia.dreamweaver.appdev, Murray *ACE* wrote:
>
> [about verifying MX records]
>> Is this worth doing, Joe?
>
> I honestly haven't tracked it. Looking at some logs I have, probably
> not; most (form injection) spammers seem to submit using
> @domainname.invalid when the form is hosted on domainname.invalid. On a
> low-volume form, I could make two arguments:
> - Added verification can't hurt
> - For legitimate users of the form, it protects them from Fat Fingers
> Syndrome. If they misspell their own domain name (thus making it tough
> to reply to them), their email won't send.
>
> --
> Joe Makowiec
> http://makowiec.net/
> Email: http://makowiec.net/email.php


Inspiring
January 12, 2007
On 12 Jan 2007 in macromedia.dreamweaver.appdev, Murray *ACE* wrote:

[about verifying MX records]
> Is this worth doing, Joe?

I honestly haven't tracked it. Looking at some logs I have, probably
not; most (form injection) spammers seem to submit using
@domainname.invalid when the form is hosted on domainname.invalid. On a
low-volume form, I could make two arguments:
- Added verification can't hurt
- For legitimate users of the form, it protects them from Fat Fingers
Syndrome. If they misspell their own domain name (thus making it tough
to reply to them), their email won't send.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
Inspiring
January 12, 2007
Is this worth doing, Joe?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Joe Makowiec" <makowiec@invalid.invalid> wrote in message
news:Xns98B63E89CE46DmakowiecatnycapdotrE@216.104.212.96...
> On 12 Jan 2007 in macromedia.dreamweaver.appdev, Michael Fesser wrote:
>
>> .oO(jimmyd1988)
>>
>>>Hi, I'm having trouble figuring out how you make it so that when you
>>>type in an email address in a textfield for a form on dreamweaver,
>>>the email address is a valid one and not just some random mix of
>>>letters or numbers. Any suggestions is appreciated. Thank you
>>
>> The best you can do is to use a little script to check that there's
>> one and only one '@' with something before and something after it.
>> Anything more is rather unreliable, as it's not possible to check
>> the "validity" of an email address with simple regular expression
>> checks.
>
> While you can't verify an individual email address, you can verify the
> existence of an MX record[1]:
>
> <?php function ValidateEmailDomain($addr){
> list($local, $domain) = explode("@", $addr);
> $valid_domain = checkdnsrr($domain, 'MX');
> return $valid_domain;
> }
> ?>
>
> More information: http://www.php.net/manual/en/function.checkdnsrr.php
>
> [1] http://en.wikipedia.org/wiki/Mx_record
>
> --
> Joe Makowiec
> http://makowiec.net/
> Email: http://makowiec.net/email.php


Inspiring
January 12, 2007
On 12 Jan 2007 in macromedia.dreamweaver.appdev, Michael Fesser wrote:

> .oO(jimmyd1988)
>
>>Hi, I'm having trouble figuring out how you make it so that when you
>>type in an email address in a textfield for a form on dreamweaver,
>>the email address is a valid one and not just some random mix of
>>letters or numbers. Any suggestions is appreciated. Thank you
>
> The best you can do is to use a little script to check that there's
> one and only one '@' with something before and something after it.
> Anything more is rather unreliable, as it's not possible to check
> the "validity" of an email address with simple regular expression
> checks.

While you can't verify an individual email address, you can verify the
existence of an MX record[1]:

<?php function ValidateEmailDomain($addr){
list($local, $domain) = explode("@", $addr);
$valid_domain = checkdnsrr($domain, 'MX');
return $valid_domain;
}
?>

More information: http://www.php.net/manual/en/function.checkdnsrr.php

[1] http://en.wikipedia.org/wiki/Mx_record

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
Inspiring
January 12, 2007
.oO(jimmyd1988)

>Hi, I'm having trouble figuring out how you make it so that when you type in an
>email address in a textfield for a form on dreamweaver, the email address is a
>valid one and not just some random mix of letters or numbers. Any suggestions
>is appreciated. Thank you

The best you can do is to use a little script to check that there's one
and only one '@' with something before and something after it. Anything
more is rather unreliable, as it's not possible to check the "validity"
of an email address with simple regular expression checks.

Micha