Advanced Member
Posts: 2396
2396
Thanks Mike. I see now.
What I was referring to is the apostrophe breaks the code when using javascript to write to the browswer in your inc_announce.asp file. Since the javascript has a beginning and an ending apostrophe, an additional apostrophe in the subject of the topic or the message would stop the javascript by not allowing the code to finish completely. That's the reason I mentioned it. Look below for the apostrophes in the code (in red) and the beginning and the end of the command in blue:
document.write('<Div align="center"><View_announcements.asp><strong><%= rsAnnounce("A_SUBJECT") %></strong></font><br><br><view_announcements.asp><%= rsAnnounce("A_message") %><br></div><br>');
document.write('</font>');