Did you read the last two paragraphs in the page (
http://www.rxs-enterprises.org/tests/email-check.htm )where it says:
Do not use FrontPage validation
and
Change the form properties to "Send to email" or "Send to File", and set
up the confirmation page.
If you want to use FrontPage validation there is a lot more to be done -
1) Change the form properties as above
2) the email check script must be added to the validation script that
FrontPage produces - this can be done in NotePad, it cannot be done in
FrontPage.
3) The form name must be changed in two places as mentioned on the page
4) All FrontPage validation webbots must be removed from the form -
again in NotePad so FP doesn't redo changes 1 and 2.
Your form has 2 form tags where there should only be one - though the
first appears to be broken (lacking an opening "<"). The second tag
should work provided you publish the form using HTTP to a server running
the FP extensions, but it will not check the email fields.
The one and only form tag (as seen in FrontPage code view in a disc
based web) should be:
<form id="contact" action="--WEBBOT-SELF--" method="POST" name="contact"
onsubmit="return chkvals('contact')">
And the rest of the form:
<!--webbot bot="SaveResults"
U-File="../_private/form_results2.txt" S-Format="TEXT/PRE"
S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Builtin-Fields
U-Confirmation-Url="Default.asp" -->
<p>Email <input class="inp" name="email1"
onchange="compFields('contact')" type="text" /></p>
<p>Retype Email <input class="inp" name="email2"
onchange="compFields('contact')" type="text" /></p>
<p style="padding-left:3em;"><input class="button" name="Button1"
type="submit" value="Submit" /></p>
</form>
(I have not set an email address, and this form only has 2 fields.)
Note the total lack of FP validation.
In the browser (as produced by Preview in Browser) this becomes:
<form id="contact" action="../_derived/nortbots.htm" method="POST"
name="contact" onsubmit="location.href='../_derived/nortbots.htm';return
false;" webbot-action="--WEBBOT-SELF--" webbot-onSubmit="return
chkvals('contact')">
<!--webbot bot="SaveResults"
U-File="../_private/form_results2.txt" S-Format="TEXT/PRE"
S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Builtin-Fields
U-Confirmation-Url="Default.asp" startspan --><input TYPE="hidden"
NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults"
i-checksum="43374" endspan -->
<p>Email <input class="inp" name="email1"
onchange="compFields('contact')" type="text" /></p>
<p>Retype Email <input class="inp" name="email2"
onchange="compFields('contact')" type="text" /></p>
<p style="padding-left:3em;"><input class="button" name="Button1"
type="submit" value="Submit" /></p>
</form>
Finally after HTTP publishing to a server (Windows server in this case -
Unix servers will be slightly different) this changes again to: (View
Source in Browser)
<form id="contact"
action="../_vti_bin/shtml.dll/tests/email-check.htm" method="POST"
name="contact" onSubmit="return chkvals('contact')"
webbot-action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults"
U-File="../_private/form_results2.txt" S-Format="TEXT/PRE"
S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Builtin-Fields
U-Confirmation-Url="Default.asp" startspan --><input TYPE="hidden"
NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan
i-checksum="43374" -->
<p>Email <input class="inp" name="email1"
onchange="compFields('contact')" type="text" /></p>
<p>Retype Email <input class="inp" name="email2"
onchange="compFields('contact')" type="text" /></p>
<p style="padding-left:3em;"><input class="button" name="Button1"
type="submit" value="Submit" /></p>
</form>
You can see the published version of this at
http://www.rxs-enterprises.org/tests/email-check2.htm
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
http://www.rxs-enterprises.org/fp