<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Extended validation in form</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Extended validation in form</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 02:03:43 +0000</pubDate>

<item>
<title>yuniar on "Extended validation in form"</title>
<link>https://www.machform.com/forums/topic/extended-validation-in-form#post-6986</link>
<pubDate>Thu, 20 Aug 2009 11:59:17 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">6986@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I must say this one pretty hard to explain, since the backend processing is pretty complex.&#60;/p&#62;
&#60;p&#62;Basically you'll need to modify one file &#34;includes/post-functions.php&#34; file.&#60;br /&#62;
Inside the file, there is the main form processing function &#34;process_form()&#34; which handle all form validations and submission.&#60;/p&#62;
&#60;p&#62;You'll need to dig into this function and play around to get clear understanding with the code.&#60;/p&#62;
&#60;p&#62;Sorry if I can't be more helpful!
&#60;/p&#62;</description>
</item>
<item>
<title>PHPWimp on "Extended validation in form"</title>
<link>https://www.machform.com/forums/topic/extended-validation-in-form#post-6957</link>
<pubDate>Tue, 18 Aug 2009 11:27:52 +0000</pubDate>
<dc:creator>PHPWimp</dc:creator>
<guid isPermaLink="false">6957@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;I am looking to use MachForm for my field validation, but I also have additional application validation that needs to occur.&#60;/p&#62;
&#60;p&#62;Here are 2 examples:&#60;/p&#62;
&#60;p&#62;1)  My user enters an email address.  I will have MachForm check for duplicates, but I also need to be able to check the primary database to determine if the email address already exists.  This would indicate that the user has already registered, so I need to throw an error.  I would like that error to come up just as the errors do for field validation, but with a different message.  So, the error would say 'That email address is already taken.  Please enter a new email address.'.&#60;/p&#62;
&#60;p&#62;2)  My user enters a value they want to use for an application.  I have Perl scripts that go and evaluate that code.  It is easy enough to call Perl from PHP, but where do I insert it, and how do I get the result of that call to be used in the PHP scripts to flag an error.  &#60;/p&#62;
&#60;p&#62;In other words, they type in the word 'cat'.  I check inventory, and we have no cats.  So, I throw an error saying 'Parameter cat is unknown.  Please re-enter.'&#60;/p&#62;
&#60;p&#62;I have a ton of functionality in Perl that I would like to keep, and I want the user to stay on the same form until I have validated everything and written the data to my primary database for the application, which again is no problem through my Perl scripts.  But, where do I put the call to the Perl scripts, and how can I add the error messages back to the JS error handling?&#60;/p&#62;
&#60;p&#62;Thank all, I really appreciate the help.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
