<?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: gform_post_submission problems</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-problems</link>
		<description>Gravity Support Forums Topic: gform_post_submission problems</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:26:45 +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/gform_post_submission-problems" rel="self" type="application/rss+xml" />

		<item>
			<title>drossa on "gform_post_submission problems"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-problems#post-58183</link>
			<pubDate>Tue, 08 May 2012 13:19:36 +0000</pubDate>
			<dc:creator>drossa</dc:creator>
			<guid isPermaLink="false">58183@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;A simple problem...for a beginner in gf.&#60;/p&#62;
&#60;p&#62;I have a gravity forms and want to capture all the values after submission. Following is the piece of code for that purpose. I am just dumping the values to a file so as to look at the trigger happening on this functions....but the file in question is not created...which means that the trigger is not happening...&#60;/p&#62;
&#60;p&#62;any pointers appreciated...&#60;/p&#62;
&#60;p&#62;by the way: what is the difference between gform_post_submission &#38;amp; gform_after_submission ?&#60;/p&#62;
&#60;p&#62;regards,&#60;br /&#62;
Nilay &#60;/p&#62;
&#60;p&#62;(code follows:)&#60;/p&#62;
&#60;p&#62;/*The sms form is currently #5 ...should be modified if changed*/&#60;br /&#62;
add_action('gform_post_submission_5','process_ps_form',10,2);&#60;/p&#62;
&#60;p&#62;function process_ps_form($entry,$form)&#60;br /&#62;
{&#60;br /&#62;
  /*first test the values by writing to file*/&#60;br /&#62;
  $fhandle = fopen( get_template_directory().'/scripts/form_info_dump.txt','w');&#60;/p&#62;
&#60;p&#62;  //the country code where the sms needs to be sent to&#60;br /&#62;
  $country_isd_code = $entry['52'];&#60;br /&#62;
  fwrite($fhandle,'Country isd code is:'.$country_isd_code.'\n');&#60;/p&#62;
&#60;p&#62;  //getting telephone numbers&#60;br /&#62;
  $tnumbers = $entry['32'];&#60;br /&#62;
  fwrite($fhandle,'Telephone numbers used:'.$tnumbers.'\n');&#60;/p&#62;
&#60;p&#62;  //get the message to be sent&#60;br /&#62;
  $message = $entry['34'];&#60;br /&#62;
  fwrite($fhandle,'Message to be sent is:'.$message.'\n');&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
