Submit button Help!!

ToolBox

New Member
I crated a form box just like the one on this site. http://www.progresspreferred.com/about_us.php

The form on the left side "Get an Instant quote"

Instead of the "Get a Quote" button i put the regular "Submit Form" button.

<form action="" method="post" id="instant-quote"><table width="200" border="0">
<tr>
<td><span id="zip-code">
<label for="zipCode"></label>
<input type="text" name="zipCode" id="zipCode" tabindex="1" />
<span class="textfieldRequiredMsg"><br />
A value is required.</span></span></td>
<td><label for="procuts"></label>
<select name="procuts" id="procuts" tabindex="2">
<option value="Auto" selected="selected">Auto</option>
<option value="Trucks">Trucks</option>
<option value="Home">Home</option>
<option value="Contractors">Contractors</option>
<option value="Business Owners">Business Owners</option>
</select></td>
</tr>
<tr>
<td><input type="submit" name="submit" id="submit" onclick="return next()" value="Continue" tabindex="3" /></td>
<td>&nbsp;</td>
</tr>
</table>
</form>

NOW I want my visiters to select the insurance product (Auto, Home...) and click on the "submit" button and the submit button takes them to whatever option they chose on the drop down menu. Just the way it work on that website. How can this be done? What do I need to add in the code to make it work?

Thank you
 

ToolBox

New Member
I do not need any php. just simple javascript code to redirect the selected value. Can anyone help me with the code?

This is the form.

<form action="" method="post" id="instant-quote"><table width="200" border="0">
<tr>
<td><span id="zip-code">
<label for="zipCode"></label>
<input type="text" name="zipCode" id="zipCode" tabindex="1" />
<span class="textfieldRequiredMsg"><br />
A value is required.</span></span></td>
<td><label for="procuts"></label>
<select name="procuts" id="procuts" tabindex="2">
<option value="Auto" selected="selected">Auto</option>
<option value="Trucks">Trucks</option>
<option value="Home">Home</option>
<option value="Contractors">Contractors</option>
<option value="Business Owners">Business Owners</option>
</select></td>
</tr>
<tr>
<td><input type="submit" name="submit" id="submit" onclick="return next()" value="Continue" tabindex="3" /></td>
<td>&nbsp;</td>
</tr>
</table>
</form>
 

CaldwellYSR

Member
I do not need any php. just simple javascript code to redirect the selected value. Can anyone help me with the code?

This is the form.

<form action="" method="post" id="instant-quote"><table width="200" border="0">
<tr>
<td><span id="zip-code">
<label for="zipCode"></label>
<input type="text" name="zipCode" id="zipCode" tabindex="1" />
<span class="textfieldRequiredMsg"><br />
A value is required.</span></span></td>
<td><label for="procuts"></label>
<select name="procuts" id="procuts" tabindex="2">
<option value="Auto" selected="selected">Auto</option>
<option value="Trucks">Trucks</option>
<option value="Home">Home</option>
<option value="Contractors">Contractors</option>
<option value="Business Owners">Business Owners</option>
</select></td>
</tr>
<tr>
<td><input type="submit" name="submit" id="submit" onclick="return next()" value="Continue" tabindex="3" /></td>
<td>&nbsp;</td>
</tr>
</table>
</form>

They are trying to help you with the code. You don't want help you obviously just want someone to give you the code to make it work. Look at Chrishirst's answer and figure it out.
 
Top