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, "thi
Hello Dimitri,
Wednesday, December 3, 2003, 3:28:19 AM, you wrote:
DM> I'm sure this is an easy fix, but how do you either prevent users from being
DM> able to input " " in a field or make it so that it doesn't affect the code?
Assuming you mean the double quote marks, and not a blank space, use
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... get's inserted because of the double quotes.
Is that more clear?
Dimitri Marshall
"Chris Shiflett" <[EMAIL PROTECTED]
--- Dimitri Marshall <[EMAIL PROTECTED]> 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
Hi there,
I'm sure this is an easy fix, but 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?
Thanks in advance,
Dimitri Marshall
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
5 matches
Mail list logo