<?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: Condition loop in post-functions.php</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Condition loop in post-functions.php</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:09:22 +0000</pubDate>

<item>
<title>yuniar on "Condition loop in post-functions.php"</title>
<link>https://www.machform.com/forums/topic/condition-loop-in-post-functionsphp#post-19199</link>
<pubDate>Sun, 15 Sep 2013 17:30:20 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">19199@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;At the top of that block of code, you can add this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$entry_values = mf_get_entry_values($dbh,$form_id,$entry_id);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that would get all the values of your field into &#34;$entry_values&#34; as an array.&#60;/p&#62;
&#60;p&#62;You can then use the array to create the if statement, something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($entry_values[&#38;#39;element_10&#38;#39;] == 1 &#38;#38;&#38;#38; $form_id == 7739){
    $paypal_params[&#38;#39;amount_&#38;#39;.$i] = round(0.5*$amount);
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>chickc on "Condition loop in post-functions.php"</title>
<link>https://www.machform.com/forums/topic/condition-loop-in-post-functionsphp#post-19184</link>
<pubDate>Sun, 15 Sep 2013 00:28:22 +0000</pubDate>
<dc:creator>chickc</dc:creator>
<guid isPermaLink="false">19184@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have this in post-functions.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$processed_column_name[] = $column_name;

									if(!empty($amount) &#38;#38;&#38;#38; ($amount !== &#38;#39;0.00&#38;#39;)){
									  $payment_has_value = true;

									  $paypal_params[&#38;#39;item_name_&#38;#39;.$i] = $item_name;
									  $paypal_params[&#38;#39;amount_&#38;#39;.$i] 	  =round($amount);
									  $i++;
									}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I want get it this  $paypal_params['amount_'.$i] = round(0.5*$amount) for only one condition form_id=7739 and radio button id=10 has value 1, first choice. All other van go further .How to do that?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
