You are here: Re: Posting with & « PHP Programming Language « IT news, forums, messages
Re: Posting with &

Posted by Rik on 08/21/07 14:39

On Tue, 21 Aug 2007 16:35:48 +0200, Jerim <wyount@gmail.com> wrote:

> Our database stores the & symbol as &amp; I have a select menu that
> queries the database based on the selection. A sample selection:
>
> <option value=3D\"Cats &amp; Dogs\">Cats & Dogs</option>
>
> After I click on Submit, the value gets posted as "Cats & Dogs." How
> can I keep it just "Cats &amp; Dogs"

By running htmlentities over it. (so if you do that allready, do it twic=
e).

This should result in:

<option value=3D"Cats &amp;amp; Dogs">Cats &amp; Dogs</option>
-- =

Rik Wasmus

 

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

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