Our database stores the & symbol as & I have a select menu that
queries the database based on the selection. A sample selection:
After I click on Submit, the value gets posted as "Cats & Dogs." How
can I keep it just "Cats & Dogs"
Re: Posting with &
am 21.08.2007 16:39:25 von luiheidsgoeroe
On Tue, 21 Aug 2007 16:35:48 +0200, Jerim wrote:
> Our database stores the & symbol as & I have a select menu that
> queries the database based on the selection. A sample selection:
>
>
>
> 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:
-- =
Rik Wasmus
Re: Posting with &
am 21.08.2007 16:59:33 von Michael Fesser
..oO(Jerim)
>Our database stores the & symbol as &
Just curious: Why? The & is only necessary in HTML output, I
wouldn't store that in a database.
Micha
Re: Posting with &
am 21.08.2007 20:14:44 von axlq
In article <1cvlc3hdasacqg0b62q5bneeacfmpt2s3o@4ax.com>,
Michael Fesser wrote:
>.oO(Jerim)
>
>>Our database stores the & symbol as &
>
>Just curious: Why? The & is only necessary in HTML output, I
>wouldn't store that in a database.
It also isn't necessary for textual presentation either (and in some
contexts it's unprofessional). Just spell out the word "and" if
possible. The only places I use & are in URLs and things where
it's already established by tradition, such as in acronyms like D&D
or R&D.