I suggest that you pass the db field through the htmlspecialchars() function something like this
$outstring = htmlspecialchars($dbrow["dbfield"], ENT_COMPAT);
echo $outstring;
ENT_COMPAT converts double quotes but not single quotes, other values are ENT_NOQUOTES (does not convert...
Sorry I didn't preview my post - I'm new to this site!
HTML will convert & quot; (no spaces) to ".
the input line should read
<input type="text" value="This is a & quot;double quotes& quot;">
</code]
Again no spaces between the & and quot;
The page is displayed in...
If you use \" within a string PHP will replace the \" with the single " character. Alternatively HTML will replace " with a single " character.
You might find that by altering your code slightly you can make use of these conversions to insert double quotes characters...
Hi all
I am looking after a Windows 2000 network, servers are running W2K server and PC's W2K professional. We have a Netgear DG814 router, connected via ADSL to the Internet. One server is set up to be PDC and a fileserver, the other is a proxy and email server.
The problem is that I can't...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.