When I edit a form in a disc based web, in Code View I see this:
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><input type="text" name="T1" size="20"><input type="submit"
value="Submit" name="B1"><input type="reset" value="Reset"
name="B2"></p>
</form>
Note there is no sign of nortbots.htm
If I open the page in a browser (using preview in browser) then
nortbots.htm will raise its ugly head - but this is testing the form in
a disc based web using a file system address - 2 of the conditions for
the appearance of nortbots.htm
The page can be http:// published - NEVER use FTP where FrontPage
extensions are concerned - to a server running the FrontPage extensions
and nortbots.htm will be banished from the published page forever.
The onsubmit function can be added while in code view without problems:
<form method="POST" action="--WEBBOT-SELF--" name="myForm"
onsubmit="myfunction('myForm')">
<!--webbot bot="SaveResults" U-File="_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><input type="text" name="T1" size="20"><input type="submit"
value="Submit" name="B1"><input type="reset" value="Reset"
name="B2"></p>
</form>
Preview in browser (remember this is a disc based web) and View Source
shows:
<form method="POST" action="_derived/nortbots.htm" name="myForm"
onsubmit="location.href='_derived/nortbots.htm';return false;"
webbot-action="--WEBBOT-SELF--" webbot-onSubmit="myfunction('myForm')">
<!--webbot bot="SaveResults" U-File="_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input
TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults"
i-checksum="43374" endspan -->
<p><input type="text" name="T1" size="20"><input type="submit"
value="Submit" name="B1"><input type="reset" value="Reset"
name="B2"></p>
</form>
It is not possible to test a form in a disc based web, except to check
the layout.
When http published to a server, View Source in the browser shows:
<form method="POST" action="_vti_bin/shtml.dll/formtest.htm"
name="myForm" onsubmit="myfunction('myForm')"
webbot-action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input
TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults"
i-checksum="43374" endspan -->
<p><input type="text" name="T1" size="20"><input type="submit"
value="Submit" name="B1"><input type="reset" value="Reset"
name="B2"></p>
</form>
Notice that nortbots.htm ONLY appears when viewing from the disc based
web - not in FrontPage, not when correctly published to the server.
Also notice that what appears in the <form> tag depends on where you are
looking from - FrontPage code view, browser view source using page from
disc based web, browser view source using page from server give 3
different sets of attributes.
One other problem you might have - the form at https//etc will only
function (when uploaded correctly) if FrontPage extensions have been
installed on port 443 as well as the usual port 80.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
http://www.rxs-enterprises.org/fp