Re: " " in a Variable
| From: | Dimitri Marshall | Date: | Wed, 03 Dec 2003 03:38:51 +0000 |
| Subject: | Re: " " in a Variable | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171630@lists.php.net to get a copy of this message | ||
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 Handbook
> Coming mid-2004
> HTTP Developer's Handbook
> http://httphandbook.org/