|
-
Sep 23rd, 2004, 12:19 AM
#1
Thread Starter
Fanatic Member
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
Last edited by invitro; Sep 23rd, 2004 at 08:32 PM.
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|