<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Using Values and PHP Confirmation</title>
		<link>https://legacy.forums.gravityhelp.com/topic/using-values-and-php-confirmation</link>
		<description>Gravity Support Forums Topic: Using Values and PHP Confirmation</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:50:09 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/using-values-and-php-confirmation" rel="self" type="application/rss+xml" />

		<item>
			<title>begatt on "Using Values and PHP Confirmation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-values-and-php-confirmation#post-8837</link>
			<pubDate>Thu, 19 Aug 2010 16:26:08 +0000</pubDate>
			<dc:creator>begatt</dc:creator>
			<guid isPermaLink="false">8837@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;On my latest form, I have used the Label/Value feature to assign numbers (1 - 5) to each response of the 20 questions.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://cochristianhe.org/dads/confidence-survey/&#34; rel=&#34;nofollow&#34;&#62;http://cochristianhe.org/dads/confidence-survey/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;When the form is submitted, the entry shows the admin the question number (1 - 20) and the value (1 - 5) selected by the participant.&#60;/p&#62;
&#60;p&#62;I would like to be able to add up the total value of all 20 responses to come up with a total value (20 - 100) and display that total value in the confirmation (whether text, page or redirect).  &#60;/p&#62;
&#60;p&#62;Is this possible with code something like this (I am not a coder and so I don't know if this code even works)?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$result = array(&#38;quot;question1_value&#38;quot;,&#38;quot;question2_value&#38;quot;,...,&#38;quot;question20_value&#38;quot;);
echo &#38;quot;Survey Result = &#38;quot;.array_sum($result);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If it is possible, does this PHP have to be placed in my functions.php or should it be on the confirmation page in order for GF to be able to use it?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
