Sanitizing input data from text boxes

M

mbosco51

Hi. I maintain an asp website with many input text boxes. I need to
check all the data that is typed in for special chars. What is the
best way to do this? I need something that will always run, regardless
of browser settings (disabling of javascript, etc...). Thanks.
 
T

Tim Slattery

Hi. I maintain an asp website with many input text boxes. I need to
check all the data that is typed in for special chars. What is the
best way to do this? I need something that will always run, regardless
of browser settings (disabling of javascript, etc...). Thanks.

The only foolproof way to do this is to check the data on the server
after it's been submitted. If it doesn't meet with your standards,
then send it back to the client along with an error message.
 
M

mbosco51

Thanks Tim. That's where I get confused though. How do I ensure that
I'm "on the server"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top