Hi All
Thanks for the replies to my previous questions. I have some code down there to enable editing of a field called 'Usr_Surname' if the value of the variable 'authorise' is one . If the variable authorise is any other value than one I want to display the field 'Usr_Surname' without allowing users to edit it. The code is not working. I need some help. Thanks
[PHP]</tr>
<tr>
<td class="hr"><? echo htmlspecialchar s("Surname")."& nbsp;" ?></td>
<td class="dr"><? if ($authorise=='1 ') ?><textarea cols="35" rows="4" name="Usr_Surna me" maxlength="100" ><? echo str_replace('"' , '"', trim($row["Usr_Surnam e"])) ?></textarea>
<? else echo trim($row["Usr_Surnam e"]) ?></td>
</tr>
<tr>[/PHP]
Thanks for the replies to my previous questions. I have some code down there to enable editing of a field called 'Usr_Surname' if the value of the variable 'authorise' is one . If the variable authorise is any other value than one I want to display the field 'Usr_Surname' without allowing users to edit it. The code is not working. I need some help. Thanks
[PHP]</tr>
<tr>
<td class="hr"><? echo htmlspecialchar s("Surname")."& nbsp;" ?></td>
<td class="dr"><? if ($authorise=='1 ') ?><textarea cols="35" rows="4" name="Usr_Surna me" maxlength="100" ><? echo str_replace('"' , '"', trim($row["Usr_Surnam e"])) ?></textarea>
<? else echo trim($row["Usr_Surnam e"]) ?></td>
</tr>
<tr>[/PHP]
Comment