Jump to content

Multiple item checkbox that directs user to appropriate page


zanderlamm

Recommended Posts

Hello - I'm not sure if this can be done but I'm sure somebody here will be able to tell me if not.  I'm a newbie to PHP, but I'm reasonably savvy. :-)

 

I have wordpress site, and I want to create a form that has multiple user inputs, and depending on what the user selects, the form will direct them to a unique web page that makes sense with what they've selected.

 

The form is for a site I have that has 8 products.  The inputs a user selects are:

- Main Product Category (two choices)

- Subcategory (4 choices - this makes for 8 total choices)

- Method of Payment (Visa/MC /PayPal/Check - I have different payment processors for each method of payment so I will direct clients to the appropriate page they've selected)

- Agreement checkbox (IF user doesn't select the checkbox, nothing will happen when they submit).

 

So, IF the user selects product 1c, and pays by Visa, and has clicked on the Agreement checkbox, THEN they are directed to page1.html

 

and so on for other possible variations.

 

Can the following basic form I created be wrapped up in PHP or something to help me easily direct the user based on their selections?  I appreciate any help you might be able to give!

 

The html form I created is:

 

<form id="FormName" action="(EmptyReference!)" method="get" name="FormName">

<table width="500" border="1" cellspacing="0" cellpadding="0">

<tr>

<td width="150px"><strong>Product</strong></td>

<td width="10px"></td>

<td width="340px">

<select name="selectName">

<option value="one">GapFill Portfolio (ES,NQ,YM & TF)</option>

<option value="two">GapFill ES only</option>

</select>

</td>

</tr>

<tr>

<td><strong>Number of Contracts</strong></td>

<td></td>

<td>

<select name="selectName">

<option value="one">1</option>

<option value="two">2</option>

<option value="three">3</option>

<option value="four">4</option>

</select><span style="font-size: 12px;"><a href="mailto:[email protected]">Contact us</a> for more than 4 contracts</span>

</td>

</td>

</tr>

<tr>

<td><strong>Method of Payment

</strong><br />

(select one)</td>

<td></td>

<td>

<p style="font-size: 14px;"><input type="radio" name="visamc" value="visamc" />Visa/MasterCard<br />

<input type="radio" name="amex" value="amex" />American Express<br />

<input type="radio" name="paypal" value="paypal" />PayPal (Withdrawal from your bank/PayPal account)<br />

<input type="radio" name="check" value="check" />Certified Check

</td>

</tr>

<tr>

<td>I have read, and agree to the conditions in the Terms of Agreement.

<p>Click here to read the terms.</p>

</td>

<td></td>

<td><input type="checkbox" name="checkboxName" value="checkboxValue" /> I AGREE (must be checked to continue)</td>

</tr>

<tr>

<td colspan="3" align="center"><input type="submit" name="submitButtonName" value="Subscribe Now"/></td>

</tr>

</table>

</form>

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.