<?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: Confirm E-mail Variable</title>
		<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable</link>
		<description>Gravity Support Forums Topic: Confirm E-mail Variable</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 10:41:42 +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/confirm-e-mail-variable" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Confirm E-mail Variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable#post-38359</link>
			<pubDate>Wed, 19 Oct 2011 16:50:07 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38359@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad to have helped.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Confirm E-mail Variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable#post-38356</link>
			<pubDate>Wed, 19 Oct 2011 16:33:26 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">38356@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris worked at beaut!!!&#60;/p&#62;
&#60;p&#62;You we're right was the first 6 from my input ID that was causing the issue.&#60;/p&#62;
&#60;p&#62;Big thanks for your time and help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Confirm E-mail Variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable#post-38320</link>
			<pubDate>Wed, 19 Oct 2011 12:56:37 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38320@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, you were getting pretty technical so I didn't think to explain it.&#60;/p&#62;
&#60;p&#62;You can use the PHP function var_dump to view what's in the $_POST array.  That way, you know exactly the right name to use in your functions.  You can insert var_dump(&#34;$_POST&#34;); into your code, and the contents of the $_POST variable will be dumped.  &#60;strong&#62;Where&#60;/strong&#62; it gets dumped depends on where you insert the code.  &#60;/p&#62;
&#60;p&#62;I sometimes write to a file on the server, or instead I email the contents of the array.  Since we know $_POST is an array, it's safe to use the &#34;print_r&#34; function, instead of var_dump, like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
// format: email address, subject line, body
// the &#38;quot;true&#38;quot; parameter for print_r tells it to return the array, not echo it
wp_mail(&#38;quot;chris@rocketgenius.com&#38;quot;, &#38;quot;Subject line var_dump of post variable&#38;quot;, print_r(&#38;quot;$_POST&#38;quot;, true));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That will email you nice looking output from the $_POST array, and you can see the names of your inputs there.&#60;/p&#62;
&#60;p&#62;Is this form 6?  If so, you should remove the first 6, after #input_ and I think it will be fine.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Confirm E-mail Variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable#post-38317</link>
			<pubDate>Wed, 19 Oct 2011 12:49:25 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">38317@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, I don't want to sound stupid, but I don't understand the &#34;var_dump the $_POST&#34;&#60;/p&#62;
&#60;p&#62;If you roll over the fields in a CSS edit or firebug it reveals the the input ID&#60;/p&#62;
&#60;p&#62;My input ID's for the confirmation email field is:&#60;/p&#62;
&#60;p&#62;#input_6_6        - this is the 'your email' input ID&#60;br /&#62;
#input_6_6_2        - this is the 'confirmation email' input ID&#60;/p&#62;
&#60;p&#62;Can't figure it out!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Confirm E-mail Variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable#post-38124</link>
			<pubDate>Mon, 17 Oct 2011 22:17:13 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38124@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You should remove the form ID from the input.  It should look more like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;input_6_2&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you var_dump the  $_POST with your function, you will see the actual input IDs you need to target.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Confirm E-mail Variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable#post-38056</link>
			<pubDate>Mon, 17 Oct 2011 09:05:40 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">38056@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks David but I'm not getting a result though from the hook.&#60;/p&#62;
&#60;p&#62;I've inserted the code below&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;add_confirm_value&#38;#39;);
function add_confirm_value($form){
    $_POST[&#38;#39;input_6_6_2&#38;#39;] = &#38;#39;Confirm Your E-mail&#38;#39;;
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And added this into the functions.php, inside the PHP tags, and is still not adding a variable.&#60;/p&#62;
&#60;p&#62;I used firebug to get the ID of the of the input which is #input_6_6_2&#60;/p&#62;
&#60;p&#62;Am I missing something?&#60;/p&#62;
&#60;p&#62;@Kevin - this is purely for a design purpose, I'm using jQuery to clear the value when the input is clicked, and I am just using these variables for label purposes.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Confirm E-mail Variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable#post-37952</link>
			<pubDate>Fri, 14 Oct 2011 17:04:43 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">37952@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So, I'm curious, if you're pre-populating both the of the fields, then you're not really asking the user to confirm the email address by re-typing it themselves. Why not just pass the value to a normal email field with no confirmation? The confirmation field is providing no real benefit at this point.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Confirm E-mail Variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable#post-37950</link>
			<pubDate>Fri, 14 Oct 2011 16:49:25 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">37950@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Provdes,&#60;/p&#62;
&#60;p&#62;This input does not provide a dynamic population parameter; however, if you know the field ID you can populate via the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#34; rel=&#34;nofollow&#34;&#62;gform_pre_render&#60;/a&#62; hook.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;add_confirm_value&#38;#39;);
function add_confirm_value($form){

    $_POST[&#38;#39;input_3_2&#38;#39;] = &#38;#39;david@rocketgenius.com&#38;#39;;

    return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>provdes on "Confirm E-mail Variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/confirm-e-mail-variable#post-37905</link>
			<pubDate>Fri, 14 Oct 2011 06:50:25 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">37905@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;As usual I'm styling gforms to the max. On this occasion I've got a email field with with confirm email field. &#60;/p&#62;
&#60;p&#62;I've removed the input labels, and am using variables as my labels.&#60;/p&#62;
&#60;p&#62;My problem is I can only get a variable in the first email field - is there a way using the functions.php to a manually add the confirm email variable?&#60;/p&#62;
&#60;p&#62;#input_6_6  ...this has variable set using gf admin panel&#60;br /&#62;
#input_6_6_2  ...this confirm email field I need a variable on&#60;/p&#62;
&#60;p&#62;Any direction would be great thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
