ehooper
08-13-2007, 08:52 PM
This used to work, with the imported javascript for the cart, for adding lines and for form validation, and I cannot for the life of me figure out why it will no longer submit using email.
and while we're at it, i've yet to find a way to have the page redirect after submit is clicked AND send at the same time! (i've found tons of code for it, but none has actually worked with this)
Anyways, help is much loved.
<form name="formcheck" onsubmit="return formCheck(this);" action="mailto:emailcensored" method="post" enctype="text/plain" onsubmit="document.location = 'thankyou.htm';" action="thankyou.htm">
<font color="000040" face="arial">
<img src="images/bullet2.gif"><FONT face=Arial size="-1" color="dd6600">The items listed below are currently in your Quote/Buy Cart:</font>
</font> <p><CenteR>
<SCRIPT>
CheckoutCart();
</SCRIPT>
<P>
<center>
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="ORDER AND QUOTE FORM">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
</center>
</center>
<img src="images/bullet2.gif"><FONT face=Arial size="-1" color="dd6600">Please provide any additional product entries you may need:</FONT>
<centeR><br>
<TABLE border="0" bgcolor="c0c0c0" cellpadding="3" cellspacing="3">
<TR>
<TD colspan="4"><FONT face=Arial size="-2" color="111363"><center><font color="red" size="-1">*</font>
<INPUT type="radio" name="Is this for quote or buying" value="requesting_quote"><u>Requesting Quote</u>
<INPUT type="radio" name="Is this for quote or buying" value="ordering"><u>Submitting an Order: </u>
<INPUT maxLength=35 size=7 name="PO number if buying" value="PO#">
</tr>
<TR>
<TD width="43"><FONT face=Arial size="-2" color="111363"><center>
QTY</td>
<TD width="200"><FONT face=Arial size="-2" color="111363"><center>
DESCRIPTION</td>
<TD width="138"><FONT face=Arial size="-2" color="111363"><center>
PART NUMBER(S)</TD>
<TD width="51"><FONT face=Arial size="-2" color="111363"><center>
PRICE</TD>
</TR>
<TR>
<TD colspan="4">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<INPUT maxLength=9 size=4 name="1 ITEM Qty ">
<INPUT maxLength=200 size=30 name="1 ITEM: Description ">
<INPUT maxLength=200 size=20 name="1 ITEM: PN number ">
<INPUT maxLength=200 size=5 name="1 ITEM: Price "><br>
<input type="hidden" name="-------------------------">
<INPUT maxLength=9 size=4 name="2 ITEM Qty ">
<INPUT maxLength=200 size=30 name="2 ITEM: Description ">
<INPUT maxLength=200 size=20 name="2 ITEM: PN number ">
<INPUT maxLength=200 size=5 name="2 ITEM: Price "><br>
<input type="hidden" name="-------------------------">
<INPUT maxLength=9 size=4 name="3 ITEM Qty ">
<INPUT maxLength=200 size=30 name="3 ITEM: Description ">
<INPUT maxLength=200 size=20 name="3 ITEM: PN number ">
<INPUT maxLength=200 size=5 name="3 ITEM: Price "><br>
<span id="writeroot"></span>
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="button" id="AddFields" value="Add More Lines" style="color: ffffff; border 1px solid 111363; font-size: 12px; background-color: 1e3770; display: block; font-family: arial; border-color: 111363;" onclick="moreFields();" />
</td>
</TR>
</TABLE>
</center>
<p>
</center>
<img src="images/bullet2.gif"><FONT face=Arial size="-1" color="dd6600">Please provide the following
contact information:</FONT>
<TABLE border="0">
<TR>
<TD><FONT face=Arial size="-2"><EM><font color="red" size="-1">*</font>Contact Name</EM></FONT></TD>
<TD><INPUT maxLength=35 size=35 name="Contact Name"></TD>
<TD align=right><FONT face=Arial size="-2"><EM><font color="red" size="-1">*</font>Work
Phone</EM></FONT></TD>
<TD><INPUT type=text maxLength=35 size=35 name="Work Phone"> </TD></TR>
<TR>
<TD align=right><FONT face=Arial size="-2"><EM>Title</EM></FONT></TD>
<TD><INPUT maxLength=35 size=35 name="Title of Contact"> </TD>
<TD align=right><FONT face=Arial size="-2"><EM><font color="red" size="-1">*</font>Company</EM></FONT></TD>
<TD><INPUT type=text maxLength=35 size=35 name="Company"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2"><EM>FAX</EM></FONT></TD>
<TD><INPUT maxLength=35 size=35 name="FAX"> </TD>
<TD align=right><FONT face=Arial size="-2"><EM><font color="red" size="-1">*</font>E-mail</EM></FONT></TD>
<TD><INPUT type=text maxLength=35 size=35 name="Email"> </TD></TR></TBODY></TABLE>
<br>
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<table border="0">
<tr><td>
<TABLE border="0">
<TR>
<TD colspan="2"><font color="111363"><font color="1e3770" face=Arial size="-2"><u>Shipping Address</TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">Street Address</TD>
<TD><INPUT size=35 name="Shipping Street Address"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">Address (cont.)</TD>
<TD><INPUT size=35 name="Shipping Address2"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">City</TD>
<TD><INPUT size=35 name="Shipping City"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">State/Province</TD>
<TD><INPUT size=35 name="Shipping State"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">Zip/Postal Code</TD>
<TD><INPUT maxlength="12" size=12 name="Shipping Zip code"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">Country</TD>
<TD><INPUT size=35 name="Shipping Country"> </TD>
<input type="hidden" name="-------------------------">
</table>
</td><td>
<TABLE border="0">
<TR>
<TD colspan="2"><font color="111363"><font color="1e3770" face=Arial size="-2"><u>Billing Address (If different than shipping)</TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">Street Address</TD>
<TD><INPUT size=35 name="Billing Street Address"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">Address (cont.)</TD>
<TD><INPUT size=35 name="Billing Address2"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">City</TD>
<TD><INPUT size=35 name="Billing City"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">State/Province</TD>
<TD><INPUT size=35 name="Billing State"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">Zip/Postal Code</TD>
<TD><INPUT maxlength="12" size=12 name="Billing Zip code"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">Country</TD>
<TD><INPUT size=35 name="Bill Country"> </TD>
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
</table>
</table>
</center>
</center>
<P>
<img src="images/bullet2.gif"><FONT face=Arial size="-1" color="dd6600">Please provide the following
ordering information:</FONT><P>
<table border="0"><tr>
<TD><FONT face=Arial size="-2" color="111363">Requested Delivery Date:
</td><td>
<INPUT maxLength=8 size=8 name="Delivery Date Requested" value="mm-dd-yy">
</td></tr>
</table>
<table border="0">
<tr>
<TD><FONT face=Arial size="-2" color="111363">Shipping Instructions:
</td></tr><tr><td>
<TEXTAREA name="Shipping Instructions" rows=5 cols=55></TEXTAREA> </td></tr>
</table>
<table border="0" cellpadding=0 cellspacing=0>
<tr><td valign="top">
<INPUT type=submit value="Submit Form" style="color: ffffff; border 1px solid 111363; font-size: 12px; background-color: 1e3770; display: block; font-family: arial; border-color: 111363;">
</td><td>
<font color="1e3770" size="-3"><font color="red" size="-1">
*</font> Are Required Fields. Please allow form to submit using e-mail.</font>
</FORM>
and while we're at it, i've yet to find a way to have the page redirect after submit is clicked AND send at the same time! (i've found tons of code for it, but none has actually worked with this)
Anyways, help is much loved.
<form name="formcheck" onsubmit="return formCheck(this);" action="mailto:emailcensored" method="post" enctype="text/plain" onsubmit="document.location = 'thankyou.htm';" action="thankyou.htm">
<font color="000040" face="arial">
<img src="images/bullet2.gif"><FONT face=Arial size="-1" color="dd6600">The items listed below are currently in your Quote/Buy Cart:</font>
</font> <p><CenteR>
<SCRIPT>
CheckoutCart();
</SCRIPT>
<P>
<center>
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="ORDER AND QUOTE FORM">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
</center>
</center>
<img src="images/bullet2.gif"><FONT face=Arial size="-1" color="dd6600">Please provide any additional product entries you may need:</FONT>
<centeR><br>
<TABLE border="0" bgcolor="c0c0c0" cellpadding="3" cellspacing="3">
<TR>
<TD colspan="4"><FONT face=Arial size="-2" color="111363"><center><font color="red" size="-1">*</font>
<INPUT type="radio" name="Is this for quote or buying" value="requesting_quote"><u>Requesting Quote</u>
<INPUT type="radio" name="Is this for quote or buying" value="ordering"><u>Submitting an Order: </u>
<INPUT maxLength=35 size=7 name="PO number if buying" value="PO#">
</tr>
<TR>
<TD width="43"><FONT face=Arial size="-2" color="111363"><center>
QTY</td>
<TD width="200"><FONT face=Arial size="-2" color="111363"><center>
DESCRIPTION</td>
<TD width="138"><FONT face=Arial size="-2" color="111363"><center>
PART NUMBER(S)</TD>
<TD width="51"><FONT face=Arial size="-2" color="111363"><center>
PRICE</TD>
</TR>
<TR>
<TD colspan="4">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<INPUT maxLength=9 size=4 name="1 ITEM Qty ">
<INPUT maxLength=200 size=30 name="1 ITEM: Description ">
<INPUT maxLength=200 size=20 name="1 ITEM: PN number ">
<INPUT maxLength=200 size=5 name="1 ITEM: Price "><br>
<input type="hidden" name="-------------------------">
<INPUT maxLength=9 size=4 name="2 ITEM Qty ">
<INPUT maxLength=200 size=30 name="2 ITEM: Description ">
<INPUT maxLength=200 size=20 name="2 ITEM: PN number ">
<INPUT maxLength=200 size=5 name="2 ITEM: Price "><br>
<input type="hidden" name="-------------------------">
<INPUT maxLength=9 size=4 name="3 ITEM Qty ">
<INPUT maxLength=200 size=30 name="3 ITEM: Description ">
<INPUT maxLength=200 size=20 name="3 ITEM: PN number ">
<INPUT maxLength=200 size=5 name="3 ITEM: Price "><br>
<span id="writeroot"></span>
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="button" id="AddFields" value="Add More Lines" style="color: ffffff; border 1px solid 111363; font-size: 12px; background-color: 1e3770; display: block; font-family: arial; border-color: 111363;" onclick="moreFields();" />
</td>
</TR>
</TABLE>
</center>
<p>
</center>
<img src="images/bullet2.gif"><FONT face=Arial size="-1" color="dd6600">Please provide the following
contact information:</FONT>
<TABLE border="0">
<TR>
<TD><FONT face=Arial size="-2"><EM><font color="red" size="-1">*</font>Contact Name</EM></FONT></TD>
<TD><INPUT maxLength=35 size=35 name="Contact Name"></TD>
<TD align=right><FONT face=Arial size="-2"><EM><font color="red" size="-1">*</font>Work
Phone</EM></FONT></TD>
<TD><INPUT type=text maxLength=35 size=35 name="Work Phone"> </TD></TR>
<TR>
<TD align=right><FONT face=Arial size="-2"><EM>Title</EM></FONT></TD>
<TD><INPUT maxLength=35 size=35 name="Title of Contact"> </TD>
<TD align=right><FONT face=Arial size="-2"><EM><font color="red" size="-1">*</font>Company</EM></FONT></TD>
<TD><INPUT type=text maxLength=35 size=35 name="Company"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2"><EM>FAX</EM></FONT></TD>
<TD><INPUT maxLength=35 size=35 name="FAX"> </TD>
<TD align=right><FONT face=Arial size="-2"><EM><font color="red" size="-1">*</font>E-mail</EM></FONT></TD>
<TD><INPUT type=text maxLength=35 size=35 name="Email"> </TD></TR></TBODY></TABLE>
<br>
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<table border="0">
<tr><td>
<TABLE border="0">
<TR>
<TD colspan="2"><font color="111363"><font color="1e3770" face=Arial size="-2"><u>Shipping Address</TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">Street Address</TD>
<TD><INPUT size=35 name="Shipping Street Address"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">Address (cont.)</TD>
<TD><INPUT size=35 name="Shipping Address2"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">City</TD>
<TD><INPUT size=35 name="Shipping City"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">State/Province</TD>
<TD><INPUT size=35 name="Shipping State"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">Zip/Postal Code</TD>
<TD><INPUT maxlength="12" size=12 name="Shipping Zip code"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">Country</TD>
<TD><INPUT size=35 name="Shipping Country"> </TD>
<input type="hidden" name="-------------------------">
</table>
</td><td>
<TABLE border="0">
<TR>
<TD colspan="2"><font color="111363"><font color="1e3770" face=Arial size="-2"><u>Billing Address (If different than shipping)</TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">Street Address</TD>
<TD><INPUT size=35 name="Billing Street Address"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">Address (cont.)</TD>
<TD><INPUT size=35 name="Billing Address2"> </TD>
</TR>
<TR>
<TD align=right><FONT face=Arial size="-2">City</TD>
<TD><INPUT size=35 name="Billing City"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">State/Province</TD>
<TD><INPUT size=35 name="Billing State"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">Zip/Postal Code</TD>
<TD><INPUT maxlength="12" size=12 name="Billing Zip code"> </TD>
<TR>
<TD align=right><FONT face=Arial size="-2">Country</TD>
<TD><INPUT size=35 name="Bill Country"> </TD>
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
<input type="hidden" name="-------------------------">
</table>
</table>
</center>
</center>
<P>
<img src="images/bullet2.gif"><FONT face=Arial size="-1" color="dd6600">Please provide the following
ordering information:</FONT><P>
<table border="0"><tr>
<TD><FONT face=Arial size="-2" color="111363">Requested Delivery Date:
</td><td>
<INPUT maxLength=8 size=8 name="Delivery Date Requested" value="mm-dd-yy">
</td></tr>
</table>
<table border="0">
<tr>
<TD><FONT face=Arial size="-2" color="111363">Shipping Instructions:
</td></tr><tr><td>
<TEXTAREA name="Shipping Instructions" rows=5 cols=55></TEXTAREA> </td></tr>
</table>
<table border="0" cellpadding=0 cellspacing=0>
<tr><td valign="top">
<INPUT type=submit value="Submit Form" style="color: ffffff; border 1px solid 111363; font-size: 12px; background-color: 1e3770; display: block; font-family: arial; border-color: 111363;">
</td><td>
<font color="1e3770" size="-3"><font color="red" size="-1">
*</font> Are Required Fields. Please allow form to submit using e-mail.</font>
</FORM>