sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Jerim's Avatar

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 &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"

2 Answers Posted
Michael Fesser's Avatar
Guest - n/a Posts
#2: Re: Posting with &amp;

..oO(Jerim)
Quote:
Originally Posted by
>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's Avatar
Guest - n/a Posts
#3: Re: Posting with &amp;

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 &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
 
Not the answer you were looking for? Post your question . . .
197,039 members ready to help you find a solution.
Join Bytes.com

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.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors