Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Verifying Email Address?

New Here ,
Jan 11, 2007 Jan 11, 2007

Copy link to clipboard

Copied

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
TOPICS
Server side applications

Views

365
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

.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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

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


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

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


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

LATEST
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.
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines