Hi,
I have retrieved a data and assigned it to a variable "xsituation". Now i want to compare it with another variable "new" so that it outputs an option button either true or false.
Below is my code. Could you please correct it?
<?$new = "direct on beach" ;?>
<? if (strcmp($new,$xsituation)) {?>
<td width="160" bgcolor="#F5ECDE"><font size="1"><input type="radio" value="DirectOnBeach" checked name="R1">
Direct on beach</font></td>
<?} else {?>
<td width="160" bgcolor="#F5ECDE"><font size="1"><input type="radio" value="DirectOnBeach" name="R1">
Direct on beach</font></td>
<?}?>
Regards,
Shailen