GroupBrowser  




Go Back   GroupBrowser > Macromedia Newsgroups > Dreamweaver > Dreamweaver
User Name
Password
 
 
Thread Tools Search this Thread Display Modes

form validation
Old 08-23-2007, 04:26 PM #1
n h c
Guest
 
Status:
Posts: n/a
Default form validation

hey everybody!

so, all of our lead forms require that the user enter an email address. the
form is validated and you get an error message if you don't enter an email
address in the email field. however, we got some results today with email
addresses that shouldn't have made it through. one of them had a comma in place
of a period (as far as i know, commas aren't allowed in email addresses), one
didn't have a .com after the @hotmail, and another one didn't have the period
between the domain and net.

i just did a test of one of the forms, and it accepts email addresses as long
as there's an @ with text before and after it. in my opinion, that does not
constitute a valid email address. i know there's no way to make sure the
address is real, but it's important that we get the full email addresses in the
correct format for the people who do put in their real address. some of the
people who receive these form results aren't as web savvy as some of us, and
wouldn't think to replace the comma with a period, or add the .com, and will
assume the address is bad when it's not, therefore possibly losing a valid lead.

so, is there a way to require the email address to be in the full format, i.e.
"name@domain.com," and with no non-email address characters such as commas?

thanks!
-courtney

  Reply With Quote

Re: form validation
Old 08-23-2007, 04:36 PM #2
Murray *ACE*
Guest
 
Status:
Posts: n/a
Default Re: form validation

What validation are you using? DW's built-in Form Validation? Which DW?

--
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
==================


"n h c" <webforumsuser@macromedia.com> wrote in message
news:fakn13$png$1@forums.macromedia.com...
> hey everybody!
>
> so, all of our lead forms require that the user enter an email address.
> the
> form is validated and you get an error message if you don't enter an email
> address in the email field. however, we got some results today with email
> addresses that shouldn't have made it through. one of them had a comma in
> place
> of a period (as far as i know, commas aren't allowed in email addresses),
> one
> didn't have a .com after the @hotmail, and another one didn't have the
> period
> between the domain and net.
>
> i just did a test of one of the forms, and it accepts email addresses as
> long
> as there's an @ with text before and after it. in my opinion, that does
> not
> constitute a valid email address. i know there's no way to make sure the
> address is real, but it's important that we get the full email addresses
> in the
> correct format for the people who do put in their real address. some of
> the
> people who receive these form results aren't as web savvy as some of us,
> and
> wouldn't think to replace the comma with a period, or add the .com, and
> will
> assume the address is bad when it's not, therefore possibly losing a valid
> lead.
>
> so, is there a way to require the email address to be in the full format,
> i.e.
> "name@domain.com," and with no non-email address characters such as
> commas?
>
> thanks!
> -courtney
>



  Reply With Quote

Re: form validation
Old 08-23-2007, 05:11 PM #3
n h c
Guest
 
Status:
Posts: n/a
Default Re: form validation

oops! sorry for the lack of details.

it's DW8, and it is the built-in validation. i even learned the correct way to
do it from you! i select the form, go to the tag inspector and choose "validate
form" from the behaviors drop down, then i select the email field and click
"required" and "email address."

my form tag now looks like this:
<form action="*removed for security reasons*" method="post" name="form1"
id="form1" onsubmit="MM_validateForm('email','','RisEmail');return
document.MM_returnValue">



  Reply With Quote

Re: form validation
Old 08-23-2007, 05:24 PM #4
Murray *ACE*
Guest
 
Status:
Posts: n/a
Default Re: form validation

Go here -

http://www.yaromat.com

Get CheckForm extension. It does a better job, I believe. Otherwise you
will have to use Spry validation - have you tried it?

--
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
==================


"n h c" <webforumsuser@macromedia.com> wrote in message
news:fakpm7$spr$1@forums.macromedia.com...
> oops! sorry for the lack of details.
>
> it's DW8, and it is the built-in validation. i even learned the correct
> way to
> do it from you! i select the form, go to the tag inspector and choose
> "validate
> form" from the behaviors drop down, then i select the email field and
> click
> "required" and "email address."
>
> my form tag now looks like this:
> <form action="*removed for security reasons*" method="post" name="form1"
> id="form1" onsubmit="MM_validateForm('email','','RisEmail');return
> document.MM_returnValue">
>
>
>



  Reply With Quote

Re: form validation
Old 08-23-2007, 05:37 PM #5
n h c
Guest
 
Status:
Posts: n/a
Default Re: form validation

thanks! i'll check it out.

i must admit that i'm pretty ignorant about Spry at this point. i've been
meaning to look it up because i see people talk about it on here all the time,
i just haven't had a chance. i suppose i should probably do that, huh?

  Reply With Quote

Re: form validation
Old 08-23-2007, 06:57 PM #6
Murray *ACE*
Guest
 
Status:
Posts: n/a
Default Re: form validation

I like the form parts of Spry alot. The rest of it is more thunder than
rain....

--
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
==================


"n h c" <webforumsuser@macromedia.com> wrote in message
news:fakr67$15m$1@forums.macromedia.com...
> thanks! i'll check it out.
>
> i must admit that i'm pretty ignorant about Spry at this point. i've been
> meaning to look it up because i see people talk about it on here all the
> time,
> i just haven't had a chance. i suppose i should probably do that, huh?
>



  Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes





Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump




Adobe Newsgroups | Software Newsgroups


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2003-2004 All Rights Reserved GroupBrowser LLC.