OT: php and filepro apostrophe
Kenneth Brody
kenbrody at bestweb.net
Fri Jun 2 08:33:51 PDT 2006
Quoting Richard D. Williams (Fri, 02 Jun 2006 10:29:41 -0500):
> This relates to a previous post about converting apostrophes. I never
> could get an edit to perform this function.
[...]
> php variable contains D'Alton as well.
>
> But, here is the problem. The html line,
> <input type='text' name='subject_name' value='$subject_name'>
> result in just the letter D in the text box. Everything after the
> apostrophe and the apostrophe is gone.
>
> I tried using addslashes to convert the php variable subject_name value
> to D\'Alton. But it just result with D\ being placed into the html text
> box.
>
> Does anyone have any suggestions.
[...]
What about using double-quotes around things?
<input type="text" name="subject_name" value="$subject_name">
(Unless, of course, $subject_name may contain these quotes as well.)
It may work by converting the apostrophe into "%27", though that
depends on how things are read.
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list