Hey everybody,

I created a HTML form using Dreamweaver and Spry validation fields to make sure that the fields follow the format I want for the fields.

The problem I am having is that I simply want a button to print the page with the information that the user has put into the fields, but the page can only print if the information in the form is correct first.

Is there any way to do this????

Thanks to anyone in advance.

Simple, add some validation. I would probably go with jquery (personal preference)

So think of something along these lines

$('#formid').submit(function() {
var checkValid = $("#formid").validationEngine({returnIsValid:true});
 if( checkValid == true ) {
  // "print"
  }else{
  // "stop"
 return;
 }
});
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.