Connecting Tech Pros Worldwide Help | Site Map

Posting with &

  #1  
Old August 21st, 2007, 03:45 PM
Jerim
Guest
 
Posts: n/a
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, 04:05 PM
Michael Fesser
Guest
 
Posts: n/a

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, 07:15 PM
axlq
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Problem using if statement with && John answers 9 June 27th, 2008 05:13 PM
Command Line Argument with & and ^ mackmelo answers 7 April 3rd, 2006 11:25 AM
How to enforce "&"inside my queryString? Mehdi answers 2 November 19th, 2005 04:20 AM
problem parsing XML files with &lt; and &gt; in cdata-section wenke answers 3 July 17th, 2005 05:04 AM