I have a variable that is a name with an apostrophe in eg O'Grady.
When I echo the value ($g_last) within the script generally its OK,
when I try the following in a normal table I only get the O returned:
Code: Select all
<TD>Surname:</TD>
<TD><INPUT TYPE='text' NAME='surname' VALUE='<?php echo("$g_last") ?>' SIZE='40' MAXLENGTH='20' READONLY></TD>Hebbs