Click to See Complete Forum and Search --> : how to ignore some characters in POST or GET?
synthtemplar
May 13th, 2003, 10:18 AM
please. i want to knox how i could ignore some characters from POST and GET.. like this ( ' ).. or any other that could give me problems at the time of inserting records.. however i already used SERVER.HTMLENCODE but those characters still give me problems.
thanks
synthtemplar
May 13th, 2003, 10:41 AM
ok! i already use URLEncode to catch those characters.. but now i want to show the result exactly as the user wrote.. for example:
the user wrote " hello:) " and the URLEncode turn that into something like " hello%3A%29 ".. so.. how i can DECODE the result and show exactly how the user wrote?
synthtemplar
May 13th, 2003, 11:03 AM
hello again! i think that i found the answer for my self.. but i think that ASP have to include an Server.URLDecode to solve a lot of problems to a lot of people.. because i'm just trying to insert information to a database and it is just a very simple task in webprogramming.. and in ASP brought me a lot of problems!
check this!
http://www.kamath.com/codelibrary/cl006_url.asp
the solution is to create a function in javascript.. that could be your own URLDecode
synthtemplar
May 13th, 2003, 11:23 AM
hello! again!
i just tried my function URLDecode.. but with that you can still pass HTML TAGS!!! the the best way to do it is:
=Server.HTMLEncode(URLDecode(string))
at it's over
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.