I have a HTML form (combined with PHP script) which presents 3 radio buttons.
When either of the first 2 radio buttons are selected, I want to display a piece of text on the form - eg. Amount : $100.
If the user selects the third radio button, I dont want to display this text.
How can I achieve this?
You see that I want to display the text Amount: $100, if the condition shown by <what do I put here> is true.
Can anyone advise. So, on selection of the first or second radio button, I want to display the Amount, but if the third radio button is selected I dont want to display Amount text.
When either of the first 2 radio buttons are selected, I want to display a piece of text on the form - eg. Amount : $100.
If the user selects the third radio button, I dont want to display this text.
How can I achieve this?
Code:
<td width="217"><input type="radio" id="type" name="type" checked="checked" value="single" style="width:15px">
Option 1</td>
<td>
<input type="radio" id="type" name="type" value="multiples" style="width:15px"> Option 2 </td>
<td width="136"><input type="radio" id="type" name="type" value="multiples" style="width:15px"> Option3</td>'
</tr>
</table>
<div>
Select option
<? if (<what do I put here?> { ?>
Amount: $100 ?>
<? } ?>
You see that I want to display the text Amount: $100, if the condition shown by <what do I put here> is true.
Can anyone advise. So, on selection of the first or second radio button, I want to display the Amount, but if the third radio button is selected I dont want to display Amount text.