Re: " " in a Variable
| From: | Jason Sheets | Date: | Wed, 03 Dec 2003 03:42:43 +0000 |
| Subject: | Re: " " in a Variable | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171632@lists.php.net to get a copy of this message | ||
Try using htmlentities() to convert the characters to the html entities that can be stored and displayed.
http://www.php.net/htmlentities
Jason
Dimitri Marshall wrote:
Sorry, what I mean is... I have a field in a form where users input text. If the user inputs something like: Hi there, "this is a quote" and you should know it. Then only... <Hi there, > get's inserted because of the double quotes. Is that more clear? Dimitri Marshall "Chris Shiflett" <shiflett@php.net> wrote in message news:20031203033701.81274.qmail@web14307.mail.yahoo.com...--- Dimitri Marshall <webmaster@dyntdesign.com> wrote:how do you either prevent users from being able to input " " in a field or make it so that it doesn't affect the code?Can you give an example of affecting the code? You can store spaces in variables just fine. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security HandbookComing mid-2004HTTP Developer's Handbookhttp://httphandbook.org/