I need help with the php coding for my form. Right now I have a redirect that takes place upon submission of the form and clients are all directed to a payment page (directory_payment.html). The form code that I believe achieves that for me right now is:
<form action="/insert.php" method="post">
<input type="hidden" name="good_url"
value="http://www.mdna.com/directory_payment.html" />
However, in my directory entry form I have several additional options as radio and checkbox buttons.
For example:
LOGO AND ADVERTISEMENT PLACEMENT ORDERS (optional)
Logo Placement:
<td>
Yes <input type="radio" name="logo" value="Yes Logo" />
No <input type="radio" name="logo" value="No Logo" />
</td>
</tr>
<tr>
<td>If you requested Logo Placement, indicate submission option:
</td>
<td>
<input type="checkbox" name="logoemail" value="Will email the Logo" />Email the print material to jkesselring@mdna.com
<br />
<input type="checkbox" name="logosend" value="Will send the Logo" />
</td>
</tr>
<tr>
Advertising Placement
<td>
Yes - 1/2 Page Ad <input type="radio" name="ad" value="Yes, Half Ad" />
<br />
Yes - 1/1 Page Ad <input type="radio" name="ad" value="Yes, Full Ad" />
<br />
No <input type="radio" name="ad" value="No Ad" />
</td>
</tr>
<tr>
If you requested Ad Placement, indicate submission option:
<td>
<input type="checkbox" name="ademail" value="Will Email Ad" />Email the print material to jkesselring@mdna.com
<br />
<input type="checkbox" name="adsend" value="Will Send Ad" />
</td>
</tr>
<tr>
<td style="width: 433px"><input type="submit" value="Submit" /></td>
<td style="text-align:right;"> </td>
I want to create the coding, where if the client chooses BOTH "No" radio options (ie NO Logo AND NO Ad), they should be sent to a "thankyou.html" instead of a payment page which is not relevant to them. However, if they choose Yes to Logo and/or Ad, then they should be sent to the payment page.
Any ideas?