does anyone have an example of the following:

javascript validation on a form

if successfull call aspcode to process the form into a database. I have the javascript working but i cant get it to process correctly. Any example would be great