Throwing variables around[RSLV]
Ok, heres the problem. Take alook at this line.
HTML + ASP\Javascript
Code:
<INPUT TYPE="TEXT" NAME="txtBody" VALUE="<%=objCategory('Body')%>">
Whats wrong with this line you may ask. Well, objCategory is a recordset that is pulling up a field. If there is a ' or " in that field it totally messes up the text input. Thats not the worst of it, if there is a \n character in there or something it starts writing outside of the text field all over my page. How can i fix this?
Looking for ' and " and replacing them with \' \" is one option. How do i search for new lines though.
I'm using ASP with JScript.
Ugh how frustrating.
Thanks ladies and gents