Echoing an apostrophe in a variable...
Posted: Sat May 18, 2002 8:42 am
I cant quite get my head around this one.
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:
Maybe its just the late hour.....
Hebbs
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