Connecting Tech Pros Worldwide Forums | Help | Site Map

Posting with &

Jerim
Guest
 
Posts: n/a
#1: Aug 21 '07
Our database stores the & symbol as & I have a select menu that
queries the database based on the selection. A sample selection:

<option value=\"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"


Michael Fesser
Guest
 
Posts: n/a
#2: Aug 21 '07

re: Posting with &amp;


..oO(Jerim)
Quote:
>Our database stores the & symbol as &amp;
Just curious: Why? The &amp; is only necessary in HTML output, I
wouldn't store that in a database.

Micha
axlq
Guest
 
Posts: n/a
#3: Aug 21 '07

re: Posting with &amp;


In article <1cvlc3hdasacqg0b62q5bneeacfmpt2s3o@4ax.com>,
Michael Fesser <netizen@gmx.dewrote:
Quote:
>.oO(Jerim)
>
Quote:
>>Our database stores the & symbol as &amp;
>
>Just curious: Why? The &amp; 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 &amp; are in URLs and things where
it's already established by tradition, such as in acronyms like D&D
or R&D.

-A
Closed Thread