diesel12
09-29-2009, 09:59 PM
The form below is a simple checkout form with a select box that allows users to choose the number of email accounts they want when they check out of our website and posts the user's drop down selection's value to the url string via get.
The number of email accounts are 1, 3, and 6 email accounts. I'm trying to assign a dollar value to each option that will display in a text box (it says $TBA in example below) depending on the user's choice from select box.
Example: User chooses 1 email box, so $5 displays where $TBA is or user chooses 6 email accounts and $10 displays where $TBA is.... we just want the $TBA to change to reflect the cost of the email accounts based on the user's chosen number of email accounts from drop down select box....
Any feedback on how to accomplish this is appreciated!
<form action="/accounts/cart.php" method="get">
<table class="comparison pricing-email" border="0" cellspacing="1" cellpadding="0" width="100%">
<tbody>
<tr class="row1">
<td class="col1">Choose # of EMAIL accounts:</td>
<td>
<select style="width: 60px; font-size: 17px;" name="a=add"> <option value="1">1</option> <option value="3">3</option> <option value="4">6</option> </select>
</td>
<td></td>
</tr>
<tr class="row1">
<td class="col1">Per Month:</td>
<td>$TBA</td>
<td>
<input type="image" src="/wp-content/themes/leadpress/images/sign-up.png" alt="Sign Up" /></input>
</td>
</tr>
</tbody>
</table>
</form>
The number of email accounts are 1, 3, and 6 email accounts. I'm trying to assign a dollar value to each option that will display in a text box (it says $TBA in example below) depending on the user's choice from select box.
Example: User chooses 1 email box, so $5 displays where $TBA is or user chooses 6 email accounts and $10 displays where $TBA is.... we just want the $TBA to change to reflect the cost of the email accounts based on the user's chosen number of email accounts from drop down select box....
Any feedback on how to accomplish this is appreciated!
<form action="/accounts/cart.php" method="get">
<table class="comparison pricing-email" border="0" cellspacing="1" cellpadding="0" width="100%">
<tbody>
<tr class="row1">
<td class="col1">Choose # of EMAIL accounts:</td>
<td>
<select style="width: 60px; font-size: 17px;" name="a=add"> <option value="1">1</option> <option value="3">3</option> <option value="4">6</option> </select>
</td>
<td></td>
</tr>
<tr class="row1">
<td class="col1">Per Month:</td>
<td>$TBA</td>
<td>
<input type="image" src="/wp-content/themes/leadpress/images/sign-up.png" alt="Sign Up" /></input>
</td>
</tr>
</tbody>
</table>
</form>