<?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: Limit number of entries variables</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Limit number of entries variables</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:27:40 +0000</pubDate>

<item>
<title>cyberground on "Limit number of entries variables"</title>
<link>https://www.machform.com/forums/topic/limit-number-of-entries-variables#post-12865</link>
<pubDate>Thu, 03 Nov 2011 20:45:09 +0000</pubDate>
<dc:creator>cyberground</dc:creator>
<guid isPermaLink="false">12865@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I found a solution for me here in your forum. Thanks a lot // I love your support and your Software.&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forums/topic/checkboxes-php-disable?replies=2#post-12604&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/checkboxes-php-disable?replies=2#post-12604&#60;/a&#62; THX
&#60;/p&#62;</description>
</item>
<item>
<title>cyberground on "Limit number of entries variables"</title>
<link>https://www.machform.com/forums/topic/limit-number-of-entries-variables#post-12863</link>
<pubDate>Thu, 03 Nov 2011 19:01:38 +0000</pubDate>
<dc:creator>cyberground</dc:creator>
<guid isPermaLink="false">12863@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello.&#60;/p&#62;
&#60;p&#62;Would it be possible to limit the number of entries for every multiple choice?&#60;br /&#62;
There is an application form with one multiple choice field for the different dates. For each choice I need something like a counter, because for each date there is only a contingent for 20 people.&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Limit number of entries variables"</title>
<link>https://www.machform.com/forums/topic/limit-number-of-entries-variables#post-12275</link>
<pubDate>Tue, 05 Jul 2011 15:56:05 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">12275@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This possible with some customization on &#34;includes/post-functions.php&#34; file. To do this, go to around line 922 for these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$query = &#38;quot;select count(id) total_ip from ap_form_{$form_id} where ip_address=&#38;#39;$user_ip_address&#38;#39;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then you can change the code to be like this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 1 ){
	$query = &#38;quot;select count(id) total_ip from ap_form_{$form_id} where ip_address=&#38;#39;$user_ip_address&#38;#39; and date_format(date_created,&#38;#39;%d%m%Y&#38;#39;) = date_format(current_date(),&#38;#39;%d%m%Y&#38;#39;) &#38;quot;;
}
else if ($form_id == 2) {
	$query = &#38;quot;select count(id) total_ip from ap_form_{$form_id} where element_1 = &#38;#39;{$table_data[&#38;#39;element_1&#38;#39;]}&#38;#39;  &#38;quot;;
} else {
	$query = &#38;quot;select count(id) total_ip from ap_form_{$form_id} where ip_address=&#38;#39;$user_ip_address&#38;#39;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;on those code, you can see  an conditional code. I assume form 1, will have limit entries by 1 ip per day. And form 2 will have limit entries based on how many submitted email address in the form ( I assume the email field id is &#34;element_1&#34;).&#60;/p&#62;
&#60;p&#62;For limiting entries based on email count. You need go to line 934 for this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$process_result[&#38;#39;custom_error&#38;#39;] = &#38;#39;Sorry, but this form is limited to one submission per user.&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and change it to &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 2) {
	if ($row[&#38;#39;total_ip&#38;#39;] == 5) {
		$process_result[&#38;#39;custom_error&#38;#39;] = &#38;#39;Sorry, but the email address already submitted 5 times.&#38;#39;;
	}
} else {
	$process_result[&#38;#39;custom_error&#38;#39;] = &#38;#39;Sorry, but this form is limited to one submission per user.&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You need to change the id and number on those codes
&#60;/p&#62;</description>
</item>
<item>
<title>fmolstad on "Limit number of entries variables"</title>
<link>https://www.machform.com/forums/topic/limit-number-of-entries-variables#post-12270</link>
<pubDate>Tue, 05 Jul 2011 00:58:28 +0000</pubDate>
<dc:creator>fmolstad</dc:creator>
<guid isPermaLink="false">12270@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello.&#60;br /&#62;
Would it be possible to limit the number of entries to the email address provided rather than the IP?&#60;br /&#62;
Would it be possible to limit the number of entries to one per IP address per day (Then reset)?&#60;/p&#62;
&#60;p&#62;Forrest
&#60;/p&#62;</description>
</item>

</channel>
</rss>
