ASP form crashing

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

    ASP form crashing

    i have a very basic ASP form that sends information into a database

    i had made a javascript that validates but when i hit submit if their
    is info missing the javascript window pops up, tell me there missing
    information then crashes into:

    Microsoft JET Database Engine error '80040e21'

    Field 'Research.topic ' cannot be a zero-length string

    i though the javascript error would prevent the form from being
    submitted. how can i fix this.

    any ideas??? or if it comes down to it and i can live with people being
    able to submit the form with blanks what changes do i make to the
    submit procedure

    thanks
    gabriel

  • Mike Brind

    #2
    Re: ASP form crashing


    GabrielESandova l@gmail.com wrote:[color=blue]
    > i have a very basic ASP form that sends information into a database
    >
    > i had made a javascript that validates but when i hit submit if their
    > is info missing the javascript window pops up, tell me there missing
    > information then crashes into:
    >
    > Microsoft JET Database Engine error '80040e21'
    >
    > Field 'Research.topic ' cannot be a zero-length string
    >
    > i though the javascript error would prevent the form from being
    > submitted. how can i fix this.
    >
    > any ideas??? or if it comes down to it and i can live with people being
    > able to submit the form with blanks what changes do i make to the
    > submit procedure
    >[/color]

    Do your validation on the server. Client-side javascript validation is
    useless for those that have it turned off.

    --
    Mike Brind

    Comment

    • GabrielESandoval@gmail.com

      #3
      Re: ASP form crashing

      do you know any good basic validation codes or sites to get it off?

      Comment

      • Mike Brind

        #4
        Re: ASP form crashing


        GabrielESandova l@gmail.com wrote:[color=blue]
        > do you know any good basic validation codes or sites to get it off?[/color]

        Google is your friend:


        --
        Mike Brind

        Comment

        Working...