i was asked to create a mailscript for an already existing form with about 250 questions which can be answered through radioinputs. is there an easy way to go through them all and have them printed in an email?
this is a very small part of the html code i have:
<tr>
<td>MS Word</td>
<td>1<input checked type="radio" id="radio" name="MSOfficeWord[]" value="Geen" /></td>
<td>2<input type="radio" id="radio" name="MSOfficeWord[]" value="Bekend" /></td>
<td>3<input type="radio" id="radio" name="MSOfficeWord[]" value="Goed" /></td>
<td>4<input type="radio" id="radio" name="MSOfficeWord[]" value="Uitstekend" /></td>
</tr>
<tr>
<td>MS Excel</td>
<td>1<input checked type="radio" id="radio" name="MSOfficeExcel[]" value="Geen" /></td>
<td>2<input type="radio" id="radio" name="MSOfficeExcel[]" value="Bekend" /></td>
<td>3<input type="radio" id="radio" name="MSOfficeExcel[]" value="Goed" /></td>
<td>4<input type="radio" id="radio" name="MSOfficeExcel[]" value="Uitstekend" /></td>
</tr>
<tr>
<td>MS PowerPoint</td>
<td>1<input checked type="radio" id="radio" name="MSOfficePowerpoint[]" value="Geen" /></td>
<td>2<input type="radio" id="radio" name="MSOfficePowerpoint[]" value="Bekend" /></td>
<td>3<input type="radio" id="radio" name="MSOfficePowerpoint[]" value="Goed" /></td>
<td>4<input type="radio" id="radio" name="MSOfficePowerpoint[]" value="Uitstekend" /></td>
</tr>
<tr>
<td>MS FrontPage</td>
<td>1<input checked type="radio" id="radio" name="MSOfficeFrontpage[]" value="Geen" /></td>
<td>2<input type="radio" id="radio" name="MSOfficeFrontpage[]" value="Bekend" /></td>
<td>3<input type="radio" id="radio" name="MSOfficeFrontpage[]" value="Goed" /></td>
<td>4<input type="radio" id="radio" name="MSOfficeFrontpage[]" value="Uitstekend" /></td>
</tr>
the thing just goes on and on and on... also they want to be flexible, and have the possibility to add some in the future, without having to sort through the code for the email.
i have tried the solution as given here, but that doesn't do the trick, i get the following message:
Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING' in /var/www/test/mailsmw.php on line 23
anyone? please?
i'll make you pancakes...