I have a form which has a choice to select from the radio buttons. I want to send a reply as per the choice made. The form is as follows:
<div id="widget">
<table class="test">
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td width="299" align="left" valign="middle" class="">Your full Name:</td>
<td><input size="42" required="true" name="fullname" id="fullname" type="text" /></td>
</tr>
<tr>
<td width="299" align="left" valign="middle" class="">Address 1:</td>
<td><input size="42" required="true" name="address1" id="address1" type="text" /></td>
</tr>
<tr>
<td width="299" align="left" valign="middle" class="">Address 2:</td>
<td><input size="42" required="true" name="address2" id="address2" type="text" /></td>
</tr>
<tr>
<td width="299" align="left" valign="middle" class="">Your City:</td>
<td><input size="42" required="true" name="city" id="city" type="text" /></td>
</tr>
<tr>
<td width="299" align="left" valign="middle" class="">Postal (Zip) Code:</td>
<td><input size="25" required="true" name="zip" id="zip" type="text" /></td>
</tr>
<tr>
<td width="299" align="left" valign="middle" class="">Email Address:</td>
<td><input size="35" required="true" name="email" id="email" type="text" /></td>
</tr>
<tr>
<td width="299" align="left" valign="middle" class="">Need a call from us? Your phone number:</td>
<td><input size="35" name="phone" id="phone" type="text" /></td>
</tr>
<tr>
<td width="299" align="left" valign="middle" class=""><strong>Telephone call from us can help.</strong></td>
<td><input value="Price Quote for cyz" size="35" class=" validate['required']" name="subject" id="subject" type="hidden" /></td>
</tr>
<tr>
<td width="299" align="left" valign="middle" class=""></td>
<td><input value="<?php echo date("d-m-Y")?>" size="35" class=" validate['required']" name="date" id="date" type="hidden" /></td>
</tr>
<tr>
<td width="299" align="left" valign="middle" class=""><b>Which type of price Quote you need ?</b></td>
<td>
<input type="radio" name="code1" id="code1" value="code1" />Type 1 ,
<input type="radio" name="code2" id="code2" value="code2" />Type 2 ,
<input type="radio" name="code3" id="code3" value="code3" />Type 3 ,
<input type="radio" name="code4" id="code4" value="code4" />Type 4 ,
</td>
</tr
><tr>
<td width="299" align="left" valign="middle" class=""><input value="Submit " class="submitbtn" name="submit" type="submit" id="submit" /></p>
</td>
<td></td>
</tr>
</table>
Say I have 4 types of codes placed in a file array. eg:
code array :
<php _code 1 ?>
<php _code 2 ?>
<php _code 3 ?>
<php _code 4 ?>
I have a standard email reply template in which I want to change a small section where the code is placed. For example if Type 2 is selected the code 2 should be placed in the email template and if Type 3 is selected code 3 should be placed in the template and so on.
I do not know how to go about this could I get some lead..
Thanks
Ron