I used this same form for another page on my website and it works fine. Can anyone see why this new form is giving me a "Page Cannot Be Displayed" error when I hit submit?
<Form.htm>
<html>
<head>
<script type="text/javascript">
function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
{alert(alerttxt);return false}
else {return true}
}
}function validate_form(thisform)
{
with (thisform)
{
if (validate_required(name,"Name must be filled out!")==false)
{name.focus();return false}
if (validate_required(contractnum,"Contract Number must be filled out!")==false)
{contractnum.focus();return false}
if (validate_required(govpoc,"Government POC must be filled out!")==false)
{govpoc.focus();return false}
if (validate_required(govpocfax,"Government POC Fax Number must be filled out!")==false)
{govpocfax.focus();return false}
if (validate_required(govpocphone,"Government POC Phone must be filled out!")==false)
{govpocphone.focus();return false}
if (validate_required(coname,"Company Name must be filled out!")==false)
{coname.focus();return false}
if (validate_required(address,"Address must be filled out!")==false)
{address.focus();return false}
if (validate_required(city,"City must be filled out!")==false)
{city.focus();return false}
if (validate_required(state,"State must be filled out!")==false)
{state.focus();return false}
if (validate_required(zip,"Zip must be filled out!")==false)
{zip.focus();return false}
if (validate_required(fax,"Fax Number must be filled out!")==false)
{fax.focus();return false}
if (validate_required(phone,"Phone Number must be filled out!")==false)
{phone.focus();return false}
if (validate_required(techpoc,"Technical POC must be filled out!")==false)
{techpoc.focus();return false}
if (validate_required(techphone,"Technical POC Phone Number must be filled out!")==false)
{techphone.focus();return false}
if (validate_required(purpose,"Purpose of Visit must be filled out!")==false)
{purpose.focus();return false}
if (validate_required(duration,"Duration of Visit must be filled out!")==false)
{duration.focus();return false}
}
}
</script>
</head><body>
<table width="1260">
<form action=" name = VisitRequestForm
onsubmit="return validate_form(this)"
method="post">
<TR><TD align="right" colspan="5">
</TD></TR>
<TR><TD align="right" colspan="5" width="1254">
<p align="left"><a href="<img border="0" src="smaller_HiRes.gif" width="225" height="68"></a></TD></TR>
<TR><TD align="right" colspan="5" bgcolor="#003366" width="1254">
</TD></TR>
<TR><TD align="right" colspan="5">
<p align="left">
<b><font face="Verdana">Visit Request Form</font></b></TD></TR>
<TR><TD align="right" colspan="5">
<p align="left"><font face="Verdana" size="2">Fields denoted by an asterisk</font> (<font color="#800000"><span class="mandatory">*</span></font>)
<font face="Verdana" size="2">are required.</font></TD></TR>
<TR><TD width="449" align="right">
</TD><TD colspan="4">
</TD></TR>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Employee(s) Name:
</font>
</TD><TD colspan="4">
<textarea rows="1" name="name" cols="30"></textarea></TD></TR>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Contract
Number (not charge number): </font>
</TD><TD colspan="4">
<input type="text" name="contractnum" size="30"></TD></TR>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Government
POC (for need to know certification): </font>
</TD><TD colspan="4">
<input type="text" name="govpoc" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Government
POC Fax Number:
</font>
</TD><TD colspan="4">
<input type="text" name="govpocfax" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Government
POC Phone Number:
</font>
</TD><TD colspan="4">
<input type="text" name="govpocphone" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
</TD><TD colspan="4">
</TD>
</tr>
<tr>
<TD width="449" align="right">
</TD><TD colspan="4">
</TD>
</tr>
<tr>
<TD align="right" colspan="5">
<p align="left"><b><font face="Verdana">Company / Organization Visit Information</font></b></TD>
</tr>
<tr>
<TD width="449" align="right">
</TD><TD colspan="4">
</TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Name
of Company/Organization: </font>
</TD><TD colspan="4">
<input type="text" name="coname" size="30"></TD>
</tr>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Address:
</font>
</TD><TD colspan="2">
<input type="text" name="address" size="30"></TD><TD width="40">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">City:</font></TD>
<TD width="560">
<input type="text" name="city" size="12"></TD></TR>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">State:</font></TD>
<TD colspan="2">
<input type="text" name="state" size="2"></TD>
<TD>
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Zip:</font></TD>
<TD>
<input type="text" name="zip" size="12"></TD>
</tr>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Fax
Number: </font>
</TD><TD colspan="4">
<input type="text" name="fax" size="30"></TD></TR>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Phone Number:
</font>
</TD><TD colspan="4">
<input type="text" name="phone" size="30"></TD></TR>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Technical POC (name of technical person at
company visiting):
</font>
</TD><TD colspan="4">
<input type="text" name="techpoc" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Technical POC Phone Number:
</font>
</TD><TD colspan="4">
<input type="text" name="techphone" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Purpose of Visit: </font>
</TD><TD colspan="4">
<textarea rows="5" name="purpose" cols="30"></textarea></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Duration of Visit:
</font>
</TD><TD colspan="4">
<input type="text" name="duration" size="30"></TD>
</tr>
<TR><TD width="449" align="right">
</TD><TD colspan="4">
</TD></TR>
<TR><TD width="449" align="right">
<font face="Verdana" size="2">Additional Comments: </font> </TD><TD colspan="4">
<textarea rows="5" name="comments" cols="30"></textarea></TD></TR>
<TR><TD width="449">
</TD><TD colspan="4">
</TD></TR>
<TR><TD width="449" height="51">
</TD><TD width="61" height="51">
<p>
<input type="submit" value="Submit" name="submit"></TD>
<TD width="130" height="51">
<INPUT type=reset value=" Reset " name="Reset"></TD>
<TD width="604" colspan="2" height="51">
</TD></TR>
</form></table>
</body></html>
<End Form.htm>
--------------------------------
<Send.asp>
<%@ Language=VBScript %>
<%
Dim objMail
Dim crlf
Dim strBody
crlf = Chr(10) & Chr(13)
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = "WestarVisitRequest"
objMail.To= "greenwood@westar.com"
objMail.Subject= Request.Form("Westar Visit Request Form")
strBody = "Name: " & Request.Form("name") & crlf
strBody = strBody & "Contract Number: " & Request.Form("contractnum") & crlf
strBody = strBody & "Government POC " & Request.Form("govpoc") & crlf
strBody = strBody & "Government POC Fax: " & Request.Form("govpocfax") & crlf
strBody = strBody & "Government POC Phone: " & Request.Form("govpocphone") & crlf
strBody = strBody & "Company Name: " & Request.Form("coname") & crlf
strBody = strBody & "Address: " & Request.Form("address") & crlf
strBody = strBody & "City: " & Request.Form("city") & crlf
strBody = strBody & "State: " & Request.Form("state") & crlf
strBody = strBody & "Zip: " & Request.Form("zip") & crlf
strBody = strBody & "Fax: " & Request.Form("fax") & crlf
strBody = strBody & "Phone: " & Request.Form("phone") & crlf
strBody = strBody & "Technical POC: " & Request.Form("techpoc") & crlf
strBody = strBody & "Technical POC Phone Number: " & Request.Form("techphone") & crlf
strBody = strBody & "Purpose of Visit: " & Request.Form("purpose) & crlf
strBody = strBody & "Duration of Visit: " & Request.Form("duration") & crlf
strBody = strBody & "Additional Comments: " & Request.Form("comments") & crlf
objMail.Body= strBody
objMail.Send
Set objMail = Nothing
Response.Write "Message sent. Redirecting to confirmation page."
Response.Redirect "%>
<End Send.asp>
Thanks,
Jackie
<Form.htm>
<html>
<head>
<script type="text/javascript">
function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
{alert(alerttxt);return false}
else {return true}
}
}function validate_form(thisform)
{
with (thisform)
{
if (validate_required(name,"Name must be filled out!")==false)
{name.focus();return false}
if (validate_required(contractnum,"Contract Number must be filled out!")==false)
{contractnum.focus();return false}
if (validate_required(govpoc,"Government POC must be filled out!")==false)
{govpoc.focus();return false}
if (validate_required(govpocfax,"Government POC Fax Number must be filled out!")==false)
{govpocfax.focus();return false}
if (validate_required(govpocphone,"Government POC Phone must be filled out!")==false)
{govpocphone.focus();return false}
if (validate_required(coname,"Company Name must be filled out!")==false)
{coname.focus();return false}
if (validate_required(address,"Address must be filled out!")==false)
{address.focus();return false}
if (validate_required(city,"City must be filled out!")==false)
{city.focus();return false}
if (validate_required(state,"State must be filled out!")==false)
{state.focus();return false}
if (validate_required(zip,"Zip must be filled out!")==false)
{zip.focus();return false}
if (validate_required(fax,"Fax Number must be filled out!")==false)
{fax.focus();return false}
if (validate_required(phone,"Phone Number must be filled out!")==false)
{phone.focus();return false}
if (validate_required(techpoc,"Technical POC must be filled out!")==false)
{techpoc.focus();return false}
if (validate_required(techphone,"Technical POC Phone Number must be filled out!")==false)
{techphone.focus();return false}
if (validate_required(purpose,"Purpose of Visit must be filled out!")==false)
{purpose.focus();return false}
if (validate_required(duration,"Duration of Visit must be filled out!")==false)
{duration.focus();return false}
}
}
</script>
</head><body>
<table width="1260">
<form action=" name = VisitRequestForm
onsubmit="return validate_form(this)"
method="post">
<TR><TD align="right" colspan="5">
</TD></TR>
<TR><TD align="right" colspan="5" width="1254">
<p align="left"><a href="<img border="0" src="smaller_HiRes.gif" width="225" height="68"></a></TD></TR>
<TR><TD align="right" colspan="5" bgcolor="#003366" width="1254">
</TD></TR>
<TR><TD align="right" colspan="5">
<p align="left">
<b><font face="Verdana">Visit Request Form</font></b></TD></TR>
<TR><TD align="right" colspan="5">
<p align="left"><font face="Verdana" size="2">Fields denoted by an asterisk</font> (<font color="#800000"><span class="mandatory">*</span></font>)
<font face="Verdana" size="2">are required.</font></TD></TR>
<TR><TD width="449" align="right">
</TD><TD colspan="4">
</TD></TR>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Employee(s) Name:
</font>
</TD><TD colspan="4">
<textarea rows="1" name="name" cols="30"></textarea></TD></TR>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Contract
Number (not charge number): </font>
</TD><TD colspan="4">
<input type="text" name="contractnum" size="30"></TD></TR>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Government
POC (for need to know certification): </font>
</TD><TD colspan="4">
<input type="text" name="govpoc" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Government
POC Fax Number:
</font>
</TD><TD colspan="4">
<input type="text" name="govpocfax" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Government
POC Phone Number:
</font>
</TD><TD colspan="4">
<input type="text" name="govpocphone" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
</TD><TD colspan="4">
</TD>
</tr>
<tr>
<TD width="449" align="right">
</TD><TD colspan="4">
</TD>
</tr>
<tr>
<TD align="right" colspan="5">
<p align="left"><b><font face="Verdana">Company / Organization Visit Information</font></b></TD>
</tr>
<tr>
<TD width="449" align="right">
</TD><TD colspan="4">
</TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Name
of Company/Organization: </font>
</TD><TD colspan="4">
<input type="text" name="coname" size="30"></TD>
</tr>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Address:
</font>
</TD><TD colspan="2">
<input type="text" name="address" size="30"></TD><TD width="40">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">City:</font></TD>
<TD width="560">
<input type="text" name="city" size="12"></TD></TR>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">State:</font></TD>
<TD colspan="2">
<input type="text" name="state" size="2"></TD>
<TD>
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Zip:</font></TD>
<TD>
<input type="text" name="zip" size="12"></TD>
</tr>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Fax
Number: </font>
</TD><TD colspan="4">
<input type="text" name="fax" size="30"></TD></TR>
<TR><TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Phone Number:
</font>
</TD><TD colspan="4">
<input type="text" name="phone" size="30"></TD></TR>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Technical POC (name of technical person at
company visiting):
</font>
</TD><TD colspan="4">
<input type="text" name="techpoc" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Technical POC Phone Number:
</font>
</TD><TD colspan="4">
<input type="text" name="techphone" size="30"></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Purpose of Visit: </font>
</TD><TD colspan="4">
<textarea rows="5" name="purpose" cols="30"></textarea></TD>
</tr>
<tr>
<TD width="449" align="right">
<font color="#800000"><span class="mandatory">*</span></font><font face="Verdana" size="2">Duration of Visit:
</font>
</TD><TD colspan="4">
<input type="text" name="duration" size="30"></TD>
</tr>
<TR><TD width="449" align="right">
</TD><TD colspan="4">
</TD></TR>
<TR><TD width="449" align="right">
<font face="Verdana" size="2">Additional Comments: </font> </TD><TD colspan="4">
<textarea rows="5" name="comments" cols="30"></textarea></TD></TR>
<TR><TD width="449">
</TD><TD colspan="4">
</TD></TR>
<TR><TD width="449" height="51">
</TD><TD width="61" height="51">
<p>
<input type="submit" value="Submit" name="submit"></TD>
<TD width="130" height="51">
<INPUT type=reset value=" Reset " name="Reset"></TD>
<TD width="604" colspan="2" height="51">
</TD></TR>
</form></table>
</body></html>
<End Form.htm>
--------------------------------
<Send.asp>
<%@ Language=VBScript %>
<%
Dim objMail
Dim crlf
Dim strBody
crlf = Chr(10) & Chr(13)
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = "WestarVisitRequest"
objMail.To= "greenwood@westar.com"
objMail.Subject= Request.Form("Westar Visit Request Form")
strBody = "Name: " & Request.Form("name") & crlf
strBody = strBody & "Contract Number: " & Request.Form("contractnum") & crlf
strBody = strBody & "Government POC " & Request.Form("govpoc") & crlf
strBody = strBody & "Government POC Fax: " & Request.Form("govpocfax") & crlf
strBody = strBody & "Government POC Phone: " & Request.Form("govpocphone") & crlf
strBody = strBody & "Company Name: " & Request.Form("coname") & crlf
strBody = strBody & "Address: " & Request.Form("address") & crlf
strBody = strBody & "City: " & Request.Form("city") & crlf
strBody = strBody & "State: " & Request.Form("state") & crlf
strBody = strBody & "Zip: " & Request.Form("zip") & crlf
strBody = strBody & "Fax: " & Request.Form("fax") & crlf
strBody = strBody & "Phone: " & Request.Form("phone") & crlf
strBody = strBody & "Technical POC: " & Request.Form("techpoc") & crlf
strBody = strBody & "Technical POC Phone Number: " & Request.Form("techphone") & crlf
strBody = strBody & "Purpose of Visit: " & Request.Form("purpose) & crlf
strBody = strBody & "Duration of Visit: " & Request.Form("duration") & crlf
strBody = strBody & "Additional Comments: " & Request.Form("comments") & crlf
objMail.Body= strBody
objMail.Send
Set objMail = Nothing
Response.Write "Message sent. Redirecting to confirmation page."
Response.Redirect "%>
<End Send.asp>
Thanks,
Jackie