Email Limitations in forms

M

MYA

I have set up a form that emails to me successfully. How do I make sure that
the form is only sent when all the requried fields are filled up correctly.
For example I would want a email address in the email field and a phone
number in the phone field.

If somone does not put the correct syntax in the email box then I would like
the form to prompt the user to correct the mistake and then submit again.

Please help with detailed suggestions and tips
Cheers
 
M

Mike Mueller

You will need to use validation for this. There are some
recent validation articles on one of the ASP sites that can
show you how to set it up. You will find that you can check
for valid email domains and valid email formats, but do to
security (anti-spam) reasons it is generally not possible to
validate that it is a true email address.

Mike


MYA wrote:
: I have set up a form that emails to me successfully. How
: do I make sure that the form is only sent when all the
: requried fields are filled up correctly. For example I
: would want a email address in the email field and a phone
: number in the phone field.
:
: If somone does not put the correct syntax in the email
: box then I would like the form to prompt the user to
: correct the mistake and then submit again.
:
: Please help with detailed suggestions and tips
: Cheers
 
M

MYA

Mike
Thanks writing back, can you direct me where to find these validation
articles that will work with FP and IIS

MYA
 
M

Mike Mueller

MYA-
For the phone number you can use the validation in there to
only allow numbers and require 10 digits (or whatever).
For the email- google is your friend
http://www.google.com/search?hl=en&...en-US:official&q=asp+email+validation&spell=1

MYA wrote:
: Mike
: Thanks writing back, can you direct me where to find
: these validation articles that will work with FP and IIS
:
: MYA
:
: "Mike Mueller" wrote:
:
:: You will need to use validation for this. There are some
:: recent validation articles on one of the ASP sites that
:: can show you how to set it up. You will find that you
:: can check for valid email domains and valid email
:: formats, but do to security (anti-spam) reasons it is
:: generally not possible to validate that it is a true
:: email address.
::
:: Mike
::
::
:: MYA wrote:
::: I have set up a form that emails to me successfully. How
::: do I make sure that the form is only sent when all the
::: requried fields are filled up correctly. For example I
::: would want a email address in the email field and a
::: phone number in the phone field.
:::
::: If somone does not put the correct syntax in the email
::: box then I would like the form to prompt the user to
::: correct the mistake and then submit again.
:::
::: Please help with detailed suggestions and tips
::: Cheers
 
A

Andrew Murray

Use the form field validation - right-click the field you want to validate, go to
field properties, then click the "validation" button - you have several options
..e.g "Required" field, and others like requiring certain data eg numbers only
etc, and also a validation for requiring a certain number of characters as a min
and max eg a field that is "required" would need to be set to a minimum of 1
character (number or alpha) and you can set a max if you want, but not
necessary - this might be more useful in a text area - limit the person's input
to say 500 characters.,
 
Top