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