Hi all,
I am working on a site which interfaces with two different third-party form processors (web-form-buddy for validation and secure data transmission, SendThisFile for large file uploads). In order to achieve the desired effect, it's necessary to have two separate forms on the same page (one, INFO, which goes through web-form-buddy's CGI script, and one, UPLOAD, which copies some data from the INFO form and has file upload fields which goes through SendThisFile's servers).
I currently have a working page which, when you hit the Submit button at the bottom of the page, fires the INFO submission to web-form-buddy and then fires the UPLOAD form to SendThisFile (achieved using this method). If the user correctly inputs all required data, it works like a charm. However, if the INFO form contains errors and fails validation, the UPLOAD form is still submitted.
Is there a way to have the INFO form report back whether or not it was successfully submitted, and only fire the UPLOAD submission if INFO passes its validation?
Thanks in advance for any help/advice.