|
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 & I have a select menu that
> queries the database based on the selection. A sample selection:
>
> <option value=3D\"Cats & Dogs\">Cats & Dogs</option>
>
> After I click on Submit, the value gets posted as "Cats & Dogs." How
> can I keep it just "Cats & 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; Dogs">Cats & Dogs</option>
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|