Connecting Tech Pros Worldwide Help | Site Map

Posting with &

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 21st, 2007, 02:45 PM
Jerim
Guest
 
Posts: n/a
Default Posting with &

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  
Old August 21st, 2007, 03:05 PM
Michael Fesser
Guest
 
Posts: n/a
Default 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
  #3  
Old August 21st, 2007, 06:15 PM
axlq
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,989 network members.