Like could I add some validation code to the end of the formmail.php for the ajax to use to validate or will it mess up the formmail.php?
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
I understand I can use the Formail validation and it will redirect me to a page with the errors and they have the option to return to the page and correct the errors. ... is there a way to validate the form via formail and if validation does not pass show the validation on the same page so they can fix it and resubmit?
Such as AJAX submit and if all is well it executes and if not trigger jquery to show which feilds need fixed ?
Like could I add some validation code to the end of the formmail.php for the ajax to use to validate or will it mess up the formmail.php?
Hi,
Implementing AJAX in FormMail is non-trivial, but we are planning it this year.
In the meantime, we have a JavaScript validation script that does what you want.
It's called "formval.js" and you can download it here:
http://www.tectite.com/public_downloads/
Load it into your HTML and it will automatically validate using FormMail's "required" fields specification.
Within the next couple of weeks it will also support FormMail "conditions" fields.
If you have problems with the positioning of the error messages, put each field in a <div> and the message will be placed at the end of the div.
There are other ways to position the error messages for each field, so write back if you need help with that.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks