Hello All,
I'm having trouble doing some multiple onClick/onSubmit functions. I'm not a javascript programmer and have a hard time getting my head around it, but...
I've created a quote form where a user enters some numbers, the form calculates the numbers in a specified way and outputs it to a field onscreen. This part is fine, the problem i'm having is when it comes to submitting the users details and quote information to me via email.
if i put a submit() function in,the form redirects to another page and nothing gets sent accross. I've tried everything i know how to do, and was wondering if anyone could be of some help here?
I would really appreciate any help supplied, please also bear in mind i'm not a programmer, but i've got so far i dont want to give up.
The form can be located at: http://www.dirtystreetads.com/quote.html
Here's my code for my form....
I thank you in advance for any support.
Paul :?
I'm having trouble doing some multiple onClick/onSubmit functions. I'm not a javascript programmer and have a hard time getting my head around it, but...
I've created a quote form where a user enters some numbers, the form calculates the numbers in a specified way and outputs it to a field onscreen. This part is fine, the problem i'm having is when it comes to submitting the users details and quote information to me via email.
if i put a submit() function in,the form redirects to another page and nothing gets sent accross. I've tried everything i know how to do, and was wondering if anyone could be of some help here?
I would really appreciate any help supplied, please also bear in mind i'm not a programmer, but i've got so far i dont want to give up.
The form can be located at: http://www.dirtystreetads.com/quote.html
Here's my code for my form....
<h2>Online Quote</h2>
<form onclick="KW_calcForm('Total Cost',100,2,'#NumberOfStencilsHidden','+','#DistanceFromBristolHidden','+','#NumberOfLocationsHidden','+','#ConsultationNeededHidden','+','150')">
<table width="100%" border="0" cellpadding="5">
<tr>
<td colspan="2">Please feel free to use the form below to generate an instant online quote. Prices are subject to change, and prices may vary slightly depending on the size and design of your logo, whether your design meets our requirements and any other special factors you may have for your campaign.<br><BR>Don't forget we also do a <b>110% Price-Beat Guarentee</b>, so if you find a business that quotes you less than us, we'll match the price and offer you 10% cash-back!<br><BR>
Please make sure you <A HREF="mailto:info@dirtystreetads.com?Subject=Full%20Quote%20Request">Contact Us</A> to receive a full quote after you have received your instant quote.<br><br>
<tr>
<th scope="row"><div align="left" class="style1">Your Full Name</div></th>
<td><span class="style1">
<input type="text" maxlength="100" size="25" name="name" />
</span></td>
</tr><tr>
<th scope="row"><div align="left" class="style1">Your E-mail</div></th>
<td><span class="style1">
<input type="text" maxlength="100" size="25" name="email" />
</span></td>
</tr><tr>
<th scope="row"><div align="left" class="style1">Contact Telephone Number</div></th>
<td><span class="style1">
<input type="text" maxlength="25" size="25" name="telno" />
<input type="hidden" value="" name="telno" />
</span></td>
</tr><tr>
<th scope="row"><div align="left" class="style1">Number of Stencils </div></th>
<td><span class="style1">
<input type="text" maxlength="20" size="25" onblur="KW_calcForm('NumberOfStencilsHidden',100,2,'#NumberOfStencils','*','25')" name="NumberOfStencils" />
<input type="hidden" value="" name="NumberOfStencilsHidden" />
</span></td>
</tr>
<tr>
<th scope="row"><div align="left" class="style1">Distance From Bristol (Miles) </div></th>
<td><span class="style1">
<input type="text" maxlength="20" size="25" onblur="KW_calcForm('DistanceFromBristolHidden',100,2,'#DistanceFromBristol','*','1.4')" name="DistanceFromBristol" />
<a href="../quote/distancefinder.html" target="popup"
onclick="wopen('../quote/distancefinder.html', 'popup', 400, 150); return false;">Distance Finder </a>
<input type="hidden" value="" name="DistanceFromBristolHidden" />
</span></td>
</tr>
<tr>
<th scope="row"><div align="left" class="style1">Number of Cities/Towns Targetted</div></th>
<td><span style="font-family: Verdana, Arial, Helvetica, sans-serif">
<input type="text" maxlength="4" size="10" onblur="KW_calcForm('NumberOfLocationsHidden',100,2,'#NumberOfLocations','*','400')" name="NumberOfLocations" style="background-color: rgb(255, 255, 160);" />
<input type="hidden" value="" name="NumberOfLocationsHidden" />
</span></td>
</tr>
<tr>
<th scope="row"><div align="left" class="style1">Advert design/consultation needed?</div></th>
<td><span class="style1">
<input type="checkbox" value="30" onblur="KW_calcForm('ConsultationNeededHidden',100,2,'#ConsultationNeeded')" name="ConsultationNeeded" />
<input type="hidden" value="" name="ConsultationNeededHidden" />
</span></td>
</tr>
<tr>
<th scope="row"><span class="style1"></span></th>
<td><span class="style1">
<input type="reset" onclick="reset(); return false;" value="Reset" name="Reset" />
<input type="button" style="font-weight: bold;")" value="Submit" name="input" onclick="KW_calcForm('Total Cost',100,2,'#NumberOfStencilsHidden','+','#DistanceFromBristolHidden','+','#NumberOfLocationsHidden','+','#ConsultationNeededHidden','+','150')"/>
</span></td>
</tr>
<tr>
<th scope="row"><div style="text-align: right;">Total Cost £</div></th>
<td><div align="left" class="style1">
<input type="text" value="" name="Total Cost" />
</div></td>
</tr>
</table>
</form>
I thank you in advance for any support.
Paul :?