ASP form crashing

  • Thread starter GabrielESandoval
  • Start date
G

GabrielESandoval

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
 
M

Mike Brind

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

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

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
474,262
Messages
2,571,052
Members
48,769
Latest member
Clifft

Latest Threads

Top