Re: [PHP] " " in a Variable

2003-12-02 Thread Jason Sheets
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

Re: [PHP] " " in a Variable

2003-12-02 Thread Richard Davey
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

Re: [PHP] " " in a Variable

2003-12-02 Thread Dimitri Marshall
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]

Re: [PHP] " " in a Variable

2003-12-02 Thread Chris Shiflett
--- 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

[PHP] " " in a Variable

2003-12-02 Thread Dimitri Marshall
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