Sanitizing input data from text boxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mbosco51@hotmail.com

    Sanitizing input data from text boxes

    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.

  • Tim Slattery

    #2
    Re: Sanitizing input data from text boxes

    mbosco51@hotmai l.com wrote:
    [color=blue]
    >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.[/color]

    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.

    --
    Tim Slattery
    MS MVP(DTS)
    Slattery_T@bls. gov

    Comment

    • mbosco51@hotmail.com

      #3
      Re: Sanitizing input data from text boxes

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

      Comment

      • Kyle Peterson

        #4
        Re: Sanitizing input data from text boxes

        oh man...

        <mbosco51@hotma il.com> wrote in message
        news:1117039251 .811911.299030@ g49g2000cwa.goo glegroups.com.. .[color=blue]
        > Thanks Tim. That's where I get confused though. How do I ensure that
        > I'm "on the server"?
        >[/color]


        Comment

        • Tim Slattery

          #5
          Re: Sanitizing input data from text boxes

          mbosco51@hotmai l.com wrote:
          [color=blue]
          >Thanks Tim. That's where I get confused though. How do I ensure that
          >I'm "on the server"?[/color]

          If you don't know that, you need some very basic education about ASP.
          Here's one site that might be of aid: http://www.learnasp.com/learn/

          Google for others.

          --
          Tim Slattery
          MS MVP(DTS)
          Slattery_T@bls. gov

          Comment

          • mbosco51@hotmail.com

            #6
            Re: Sanitizing input data from text boxes

            doh! i got it. sorry, it's been awhile.

            Tim Slattery wrote:[color=blue]
            > mbosco51@hotmai l.com wrote:
            >[color=green]
            > >Thanks Tim. That's where I get confused though. How do I ensure that
            > >I'm "on the server"?[/color]
            >
            > If you don't know that, you need some very basic education about ASP.
            > Here's one site that might be of aid: http://www.learnasp.com/learn/
            >
            > Google for others.
            >
            > --
            > Tim Slattery
            > MS MVP(DTS)
            > Slattery_T@bls. gov[/color]

            Comment

            Working...