View Full Version : Form Validation and other events.

09-07-2008, 04:25 PM
Our web guy left suddenly and I am picking up the pieces. I am a power user but with only marginal experience in web design and I am having a problem with a form. I hope this great community can put me on the right track...!

The form has a number of fields. Upon submit, the form undergoes validation (using the built-in form validation behavior in Dreamweaver).
If all fields are OK an email is generated. So far so good.

Upon submission however, we also need to generate a "Thank you" response. So, I added a behavior (Open Browser Window), after the form validation. This works and opens the "Thank You" page but the problem is that the page opens even if validation fails and this would be misleading to the user.

Currently both behaviors respond to the OnClick Event. I tried to use the OnFinish event for the Open Browser Window hoping that if form validation fails, the next event (open "Thank You" page) will not start.

I guess that this may be simple for most of you and I hope that someone can suggest on how to make the form fully functional.

09-07-2008, 09:44 PM
go here http://www.dreamweaverclub.com/dreamweaver-php-form.php