Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I display quotes when grabbing text from file/database

Status
Not open for further replies.

JohnVogel

Programmer
Apr 19, 1999
117
US
How can one grab an arbitrary text line from a datbase or a text file (or user input) which may contain the quote and single quote chacters, and display this to the user?

Here is a line I am attempting to write run

Code:
<%=&quot;<IMG SRC='images/logo.jpg' Width='40' Height='40' ALT=&quot;&quot;&quot; & SumShort & &quot;&quot;&quot; align='left' valign='top' onClick=&quot;&quot;script:alert('&quot; & SumFull & &quot;' )&quot;&quot;></TD>&quot;%>
This would (in theory) allow a user to put their mouse over a picture and see a short summary (in the alt) or click on the graphic and get a full summary (via an alert or some other means like a pop-up window). The Short sum and the fullsum are values obtained from an Access database and many contain single and double quotes. Is there any way to do this?

TIA
[sig]<p>John Vogel<br><a href=mailto:johnvogel@computerwiz.net>johnvogel@computerwiz.net</a><br><a href= Home Page</a><br>==---____Tri Tech Labs____---==<br>
¦¦ john@tritechlabs.com ¦¦<br>
==---------------------------==<br>
<br>
[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top