FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP/MySQL oddity
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP/MySQL oddity [message #175495 is a reply to message #175480] Sun, 02 October 2011 17:35 Go to previous message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma:
Senior Member
Mason Barge, 2011-10-01 20:14:

> I've been building a form that takes default text input from a database
> (PHP 5.2, MySQL 5). It's to allow a user to modify previously entered
> text without rewriting the entire thing.
[...]
> <form name=...><input type=text . . . value = '<?php echo $info;?>'
>
> Or echo the whole thing, or double quotes around the variable. I just
> can't figure out how to make the apostrophe appear to save my life.

<?php echo htmlspecialchars($info); ?>

HTH


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OCI.DLL and libcs.dll?
Next Topic: Re: NoDQ.com > Columns > WWE Hell in a Cell Preview by TJR Staff
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 06:33:21 GMT 2024

Total time taken to generate the page: 0.03571 seconds