<?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: Check field values are the same</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Check field values are the same</description>
<language>en</language>
<pubDate>Tue, 05 May 2026 05:50:56 +0000</pubDate>

<item>
<title>teacherdavids on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-21621</link>
<pubDate>Tue, 19 Aug 2014 13:57:20 +0000</pubDate>
<dc:creator>teacherdavids</dc:creator>
<guid isPermaLink="false">21621@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Well, easiest way to fix this problem is just to change the ID number in the .../machform/includes/post-functions.php file to match the ID number that was assigned to it by Joomla. Seems the form takes on the Joomla ID number and not the number that is in the &#34;Embedded Code&#34; section in MachForm. Strange again...
&#60;/p&#62;</description>
</item>
<item>
<title>teacherdavids on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-21620</link>
<pubDate>Tue, 19 Aug 2014 10:31:02 +0000</pubDate>
<dc:creator>teacherdavids</dc:creator>
<guid isPermaLink="false">21620@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Have just noticed that the form ID# listed in the embedded code is not the same as the form number that has been assigned by Machform. For example, in the embedded code my Contact Me form is listed as ID=1 whereas when I open the form I discover that the form has ID=145. Strange. On a hunt...
&#60;/p&#62;</description>
</item>
<item>
<title>teacherdavids on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-21616</link>
<pubDate>Mon, 18 Aug 2014 15:27:33 +0000</pubDate>
<dc:creator>teacherdavids</dc:creator>
<guid isPermaLink="false">21616@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am running V2.4 and am running into problems and getting the error message &#34;You must enter the same email address!&#34; even when the email addresses are identical. I have used the suggested method Yuniar has suggested above and have changed the Form numbers and Element numbers to match those for my form and I still get the error message. Any suggestion? Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>akerr on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-19950</link>
<pubDate>Wed, 15 Jan 2014 22:45:56 +0000</pubDate>
<dc:creator>akerr</dc:creator>
<guid isPermaLink="false">19950@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The above post by Yuniar worked for me, but like MXZRXP said with the new version the code needs to placed around line 70-ish right above &#60;/p&#62;
&#60;p&#62;&#60;code&#62;$element_child_lookup[&#38;#39;address&#38;#39;] = 5;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Also&#60;/strong&#62; I had to change the operator from &#60;em&#62;&#38;#38;&#38;#38;&#60;/em&#62; to &#60;em&#62;or&#60;/em&#62; otherwise the emails would have to match across multiple forms, which is essentially impossible, below is my working code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Verification that the email addresses match
if($form_id &#38;gt;= 25863 or $form_id &#38;gt;= 25631) {
	if($input[&#38;#39;element_3&#38;#39;] != $input[&#38;#39;element_10&#38;#39;]) {
	    $process_result[&#38;#39;status&#38;#39;] = false;
	    $process_result[&#38;#39;custom_error&#38;#39;] = &#38;#39;Please enter the same email address&#38;#39;;
  }
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>williamansley on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-19416</link>
<pubDate>Wed, 16 Oct 2013 04:08:01 +0000</pubDate>
<dc:creator>williamansley</dc:creator>
<guid isPermaLink="false">19416@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;@MXZRXP: Take a look at this, it may be of help:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/confirming-your-email-logic?replies=6#post-19415&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/confirming-your-email-logic?replies=6#post-19415&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>MXZRXP on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-16443</link>
<pubDate>Sat, 10 Nov 2012 10:59:03 +0000</pubDate>
<dc:creator>MXZRXP</dc:creator>
<guid isPermaLink="false">16443@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It does work great but with current versions the code is at about line 70.&#60;/p&#62;
&#60;p&#62;QUESTION:&#60;br /&#62;
How can I highlight the fields to look like the others that fail to meet criteria??&#60;/p&#62;
&#60;p&#62;thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>eshoop on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-7811</link>
<pubDate>Thu, 29 Oct 2009 03:18:15 +0000</pubDate>
<dc:creator>eshoop</dc:creator>
<guid isPermaLink="false">7811@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;works great!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-7076</link>
<pubDate>Thu, 27 Aug 2009 15:38:01 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">7076@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Are all your forms having the identical email fields element id?&#60;br /&#62;
(if you copied your form using the 'duplicate' button, usually they are identical)&#60;/p&#62;
&#60;p&#62;If they do, you can use something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($form_id &#38;gt;= 3 &#38;#38;&#38;#38; $form_id &#38;lt;= 23){
  if($input[&#38;#39;element_1&#38;#39;] != $input[&#38;#39;element_2&#38;#39;]){
    $process_result[&#38;#39;status&#38;#39;] = false;
    $process_result[&#38;#39;custom_error&#38;#39;] = &#38;#39;You must enter the same email address!&#38;#39;;
  }
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;otherwise, you'll need to put separate 'if' block for each form.
&#60;/p&#62;</description>
</item>
<item>
<title>sjones on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-7065</link>
<pubDate>Wed, 26 Aug 2009 20:52:19 +0000</pubDate>
<dc:creator>sjones</dc:creator>
<guid isPermaLink="false">7065@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Bump
&#60;/p&#62;</description>
</item>
<item>
<title>sjones on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-7024</link>
<pubDate>Mon, 24 Aug 2009 00:53:12 +0000</pubDate>
<dc:creator>sjones</dc:creator>
<guid isPermaLink="false">7024@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The above solution DOES work great.&#60;/p&#62;
&#60;p&#62;I have a website that has about 10 email addresses on it.  We are being spammed by bots that are finding the addresses on our site.  I have decided to create a form for each recipient.  All the forms are identically layed out.  Will I have to put this code in 10 times?&#60;br /&#62;
f($form_id == 13){&#60;br /&#62;
  if($input['element_2'] != $input['element_3']){&#60;br /&#62;
    $process_result['status'] = false;&#60;br /&#62;
    $process_result['custom_error'] = 'You must enter the same email address!';&#60;br /&#62;
  }&#60;br /&#62;
}		&#60;/p&#62;
&#60;p&#62;and change the form id each time, or is there a way to say &#38;gt;=13 and &#38;lt;=23 on the form_id line?
&#60;/p&#62;</description>
</item>
<item>
<title>dennis on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-2812</link>
<pubDate>Sat, 30 Aug 2008 15:50:10 +0000</pubDate>
<dc:creator>dennis</dc:creator>
<guid isPermaLink="false">2812@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yep - that worked...   Thanks...
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-2777</link>
<pubDate>Thu, 28 Aug 2008 18:24:18 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">2777@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;If you don't mind some modification, yes it is possible.&#60;/p&#62;
&#60;p&#62;Let say your form is having id = 3 and your email fields are having id &#60;strong&#62;element_1&#60;/strong&#62; and &#60;strong&#62;element_2&#60;/strong&#62; (check the HTML source of your form to see it.&#60;/p&#62;
&#60;p&#62;Edit your &#60;strong&#62;includes/post-functions.php&#60;/strong&#62;, around line 46 - 47 you'll find this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_child_lookup[&#38;#39;address&#38;#39;]     = 5;
$element_child_lookup[&#38;#39;simple_name&#38;#39;] = 1;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Right above that code, insert this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($form_id == 3){
  if($input[&#38;#39;element_1&#38;#39;] != $input[&#38;#39;element_2&#38;#39;]){
    $process_result[&#38;#39;status&#38;#39;] = false;
    $process_result[&#38;#39;custom_error&#38;#39;] = &#38;#39;You must enter the same email address!&#38;#39;;
  }
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That would do it.&#60;/p&#62;
&#60;p&#62;If you are having difficulty, let me know the URL of your form or just send it to customer.service [at] appnitro.com
&#60;/p&#62;</description>
</item>
<item>
<title>dennis on "Check field values are the same"</title>
<link>https://www.machform.com/forums/topic/check-field-values-are-the-same#post-2765</link>
<pubDate>Wed, 27 Aug 2008 19:29:55 +0000</pubDate>
<dc:creator>dennis</dc:creator>
<guid isPermaLink="false">2765@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I would like to have the email address entered twice and then a quick check to ensure that the values are the same.&#60;/p&#62;
&#60;p&#62;Is there a (hopefully easy) way to do this please ?&#60;/p&#62;
&#60;p&#62;Thanks..
&#60;/p&#62;</description>
</item>

</channel>
</rss>
