<?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: echo $entry causes Warning:Cannot modify header information</title>
		<link>https://legacy.forums.gravityhelp.com/topic/echo-entry-causes-warningcannot-modify-header-information</link>
		<description>Gravity Support Forums Topic: echo $entry causes Warning:Cannot modify header information</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:05:56 +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/echo-entry-causes-warningcannot-modify-header-information" rel="self" type="application/rss+xml" />

		<item>
			<title>WPino on "echo $entry causes Warning:Cannot modify header information"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/echo-entry-causes-warningcannot-modify-header-information#post-64706</link>
			<pubDate>Wed, 04 Jul 2012 07:45:38 +0000</pubDate>
			<dc:creator>WPino</dc:creator>
			<guid isPermaLink="false">64706@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes query string works fine but I don't want all the data to appear in the URL adress.&#60;/p&#62;
&#60;p&#62;Yes I want to get the data after the submission, I thought that I can create a global variable in the Filter Call and use that global variable elsewhere, I think I don't understand how to use filters.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "echo $entry causes Warning:Cannot modify header information"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/echo-entry-causes-warningcannot-modify-header-information#post-64704</link>
			<pubDate>Wed, 04 Jul 2012 07:41:34 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">64704@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
Maybe I'm wrong, but i thought I could use gform_after_submission to display data from the form !&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;This action hook is executed at the end of the submission process (after form validation, notification, and entry creation).&#60;/p&#62;
&#60;p&#62;Query string might be your best option here, especially if it works.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>WPino on "echo $entry causes Warning:Cannot modify header information"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/echo-entry-causes-warningcannot-modify-header-information#post-64686</link>
			<pubDate>Wed, 04 Jul 2012 05:08:02 +0000</pubDate>
			<dc:creator>WPino</dc:creator>
			<guid isPermaLink="false">64686@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Maybe I'm wrong, but i thought I could use gform_after_submission to display data from the form !&#60;/p&#62;
&#60;p&#62;In the form setting I used the redirection option to call Search.php&#60;/p&#62;
&#60;p&#62;In search.php I have a variable and I want it to have the value of the field $entry[1]&#60;/p&#62;
&#60;p&#62;I have managed to do the job by passing the values by Query String but I really don't wont the URL to get ugly, so If I could use something else it would be great.&#60;/p&#62;
&#60;p&#62;Thanks for your answer
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "echo $entry causes Warning:Cannot modify header information"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/echo-entry-causes-warningcannot-modify-header-information#post-64605</link>
			<pubDate>Tue, 03 Jul 2012 17:04:10 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">64605@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In step one, how are you doing this:&#60;/p&#62;
&#60;p&#62;&#34;redirect it's results&#34;&#60;/p&#62;
&#60;p&#62;After the form is submitted, how are you getting the values to search.php?  I assume search.php is a template in your theme folder?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>WPino on "echo $entry causes Warning:Cannot modify header information"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/echo-entry-causes-warningcannot-modify-header-information#post-64583</link>
			<pubDate>Tue, 03 Jul 2012 14:01:47 +0000</pubDate>
			<dc:creator>WPino</dc:creator>
			<guid isPermaLink="false">64583@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I just bought this plugin and I can't get it working the way I want yet.&#60;/p&#62;
&#60;p&#62;Here's what I want to do:&#60;br /&#62;
1 - Create a from in the sidebar and redirect it's results to Search.php when hitting the Send button&#60;br /&#62;
2 - In Search.php use some data from the form to create a Buy button which will open Confirm.php&#60;br /&#62;
3 - In Confirm.php use data from the form and Search.php to create a new form.&#60;/p&#62;
&#60;p&#62;Unfortunately, I can't pass step 1 because when I click the send button I have the following error&#60;br /&#62;
&#60;blockquote&#62;2012-07-03&#60;br /&#62;
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/NihadCar/wp-content/themes/CaRental/functions.php:42) in /Applications/MAMP/htdocs/NihadCar/wp-content/plugins/gravityforms/form_display.php on line 83
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;2012-07-03 is the value I'm looking for&#60;/p&#62;
&#60;p&#62;I simply added this to the functions file to start testing:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function set_post_content($entry, $form){
	echo $entry[&#38;quot;1&#38;quot;];
}
add_action(&#38;quot;gform_after_submission_3&#38;quot;, &#38;quot;set_post_content&#38;quot;, 10, 2);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If I replace echo with return no errors but no output either!&#60;/p&#62;
&#60;p&#62;I'm testing locally so I can't give any DEMO&#60;br /&#62;
I'm using Mamp Pro with Lion
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
