The page is at
http://www.eastern.wvnet.edu/sga/sgavote08.htm
There are several problems with the page. As far as form processing
goes there are three (3) opening form tags, but only 2 closing </form>
tags.
The first form does nothing and can be deleted. In code view look for:
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="C:\Documents and
Settings\HP_Administrator\Desktop\Eastern
Web\sga\_private\form_results.csv" S-Format="TEXT/CSV"
S-Label-Fields="TRUE" -->
<p> </p>
</form>
and delete it.
The third form will only send email, and then only if
cgi-bin/FormMail.pl is correctly set up - that is for your host to
decide or help you with.
The second opening tag should also be deleted:
Look for:
<form method="POST" action="
http://www.wvnet.edu/cgi-bin/FormMail.pl"
webbot-onSubmit="return FrontPage_Form1_Validator(this)">
<input type="hidden" name="subject" value="SGA Voting Results">
<input type="hidden" name="recipient"
value="(e-mail address removed)">
and delete.
Don't mix this up with <form method="POST" name="election"
action="
http://www.wvnet.edu/cgi-bin/FormMail.pl"> further down the
page, which is required.
Note that the server
www.wvnet.edu does not appear to have FrontPage
extensions installed, so saving to a CSV file must be done through a
Perl or PHP script.
As for the error page - on submitting the form I was redirected to the
Home Page. In FormMail.pl I believe you have to set up a hidden field
that shows the script where your ThankYou page is. However the error
may be for the FormMail.pl script itself (since the later versions
incorporate an acknowledgement for the form data). Make sure you have
the correct CaSe for the file - Unix is case sensitive, did you mean to
use formmail.pl?
A Rob indicated, apart from the form(s) the page has many other problems
- including VML graphics, absolute positioning, blockquotes where a
centred table or Div would be better, and so on.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
http://www.rxs-enterprises.org/fp