Posting with &
Question posted by: Jerim
(Guest)
on
August 21st, 2007 03:45 PM
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 & Dogs\">Cats & Dogs</option>
After I click on Submit, the value gets posted as "Cats & Dogs." How
can I keep it just "Cats & Dogs"
2
Answers Posted
..oO(Jerim)
Quote:
Originally Posted by
>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
In article <1cvlc3hdasacqg0b62q5bneeacfmpt2s3o@4ax.com>,
Michael Fesser <netizen@gmx.dewrote:
Quote:
Originally Posted by
>.oO(Jerim)
>
Quote:
Originally Posted by
>>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.
-A
|
|
|
What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 197,039 network members.
Top Community Contributors
|