Reply to Re: Hidden field value displaying when the text contains double quotes

Your name:

Reply:


Posted by Jukka K. Korpela on 03/29/07 16:12

Scripsit DennBen:

> Hey guys, thanks for the input. I did try switching single quotes with
> double quotes for kicks - it didn't work, but had it worked it
> wouldn't have solved my solution anyway because the users of the site
> actually create that variable, I'm just passing the values to a second
> screen and the users have the ability to use single quotes as well as
> double quotes.
> I really want to understand why and how using double quotes in a
> variable string can cause a hidden field to display!

It sounds like you are very confused, and others can't see the situation
clearly either. But apparently you have something (invisible to us)
server-side that gets user input and turns it into hidden fields, _without_
checking for quotation marks in input.

Naturally, before putting anything into the attribute value of an HTML
attribute, you must check whether it contains an ampersand or a quotation
mark and turn such characters into entity or character references.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[Back to original 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

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