You are here: Re: Quotation marks in form input « PHP Programming Language « IT news, forums, messages
Re: Quotation marks in form input

Posted by Jerry Stuckle on 07/28/06 20:39

Karl Groves wrote:
> Jerry Stuckle <jstucklex@attglobal.net> wrote in
> news:B8OdnTUrs-2Ym1fZnZ2dnUVZ_oidnZ2d@comcast.com:
>
>
>>Karl Groves wrote:
>>
>>>I have a form which contains a field for "height".
>>>
>>>If someone places an entry such as: 5'6" the form seems like it
>>>completely empties that value.
>>>
>>>It does NOT do this on my machine, but does on the client's machine,
>>>which leads me to believe it is something with their php
>>>configuration.
>>>
>>>Any ideas on what this is (and how I can work around it?)
>>>
>>>TIA
>>>
>>
>>Hi, Karl,
>>
>>Do you mean the data doesn't get passed to the script, or when it's
>>redisplayed the value doesn't get displayed? Or it isn't stored in
>>the database correctly?
>>
>>If the latter, check out htmlentities(). That's its main purpose. It
>>changes " to &quot;, for example.
>>
>
>
> I haven't done any debugging yet. I think it is a magic_quotes_gpc issue.
> It *looks* like the entire entry is getting deleted if it contains a
> quotation mark ("). If the entry in that field doesn't contain the
> quotation mark, everything is fine.
>
>
>

Do you use the Live HTTP Headers extension to Firefox? I've found it to
be invaluable in figuring out post problems.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация