<?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: Can a user create an account and submit post with the same form?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/can-a-user-create-an-account-and-submit-post-with-the-same-form</link>
		<description>Gravity Support Forums Topic: Can a user create an account and submit post with the same form?</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:44:40 +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/can-a-user-create-an-account-and-submit-post-with-the-same-form" rel="self" type="application/rss+xml" />

		<item>
			<title>bristweb on "Can a user create an account and submit post with the same form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-a-user-create-an-account-and-submit-post-with-the-same-form#post-28450</link>
			<pubDate>Thu, 23 Jun 2011 22:28:48 +0000</pubDate>
			<dc:creator>bristweb</dc:creator>
			<guid isPermaLink="false">28450@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;you could login users with a form and/or create users&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$user_pass = rand_string(6);
			wp_insert_user( array(
				&#38;#39;user_pass&#38;#39; =&#38;gt; $user_pass,
				&#38;#39;user_login&#38;#39; =&#38;gt; $user_email,
				&#38;#39;user_email&#38;#39; =&#38;gt; $user_email,
				&#38;#39;role&#38;#39; =&#38;gt; &#38;#39;contributor&#38;#39; )) ;
			$creds[&#38;#39;user_login&#38;#39;] = $user_email;
			$creds[&#38;#39;user_password&#38;#39;] = $user_pass;
			$creds[&#38;#39;remember&#38;#39;] = true;
			wp_set_current_user( wp_signon( $creds, false )-&#38;gt;ID);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Can a user create an account and submit post with the same form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-a-user-create-an-account-and-submit-post-with-the-same-form#post-27081</link>
			<pubDate>Mon, 06 Jun 2011 10:23:36 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">27081@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Gravity Forms currently can't login users and can't be used as a login form.  Only a registration form or lead capture form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Lea Cohen on "Can a user create an account and submit post with the same form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-a-user-create-an-account-and-submit-post-with-the-same-form#post-27065</link>
			<pubDate>Mon, 06 Jun 2011 01:44:38 +0000</pubDate>
			<dc:creator>Lea Cohen</dc:creator>
			<guid isPermaLink="false">27065@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you so much for your reply.&#60;/p&#62;
&#60;p&#62;What about login - if I don't want the use to log in through the admin part of Wordpress, can I have him log in through a form (the same one that creates, or a separate one)?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Can a user create an account and submit post with the same form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-a-user-create-an-account-and-submit-post-with-the-same-form#post-27034</link>
			<pubDate>Sun, 05 Jun 2011 18:16:12 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">27034@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;A user can be registered and create a post with the same form.  However that form is always going to try and create a user.&#60;/p&#62;
&#60;p&#62;You would have to point already logged in users to a different form that only creates a post.  Currently the User Registration Add-On doesn't support conditionally creating the user.  It is a feature we plan on adding... the ability to hide the user creation fields if the user is already logged in.&#60;/p&#62;
&#60;p&#62;But currently the only way to do this is to have 2 different forms, one that registers the user and creates a post and one that just creates the post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Lea Cohen on "Can a user create an account and submit post with the same form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-a-user-create-an-account-and-submit-post-with-the-same-form#post-27005</link>
			<pubDate>Sun, 05 Jun 2011 08:31:38 +0000</pubDate>
			<dc:creator>Lea Cohen</dc:creator>
			<guid isPermaLink="false">27005@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Addition: I see that what I requested can be done. However, if the same user wants to fill out the form multiple times, it's always treated as a registration form, and shows an error that username already exists. Is there any way to make it work like a login form if the user already exists?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Lea Cohen on "Can a user create an account and submit post with the same form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-a-user-create-an-account-and-submit-post-with-the-same-form#post-27001</link>
			<pubDate>Sun, 05 Jun 2011 04:27:09 +0000</pubDate>
			<dc:creator>Lea Cohen</dc:creator>
			<guid isPermaLink="false">27001@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a request from the client, that the form be used both as a registration form, and a form for post submissions. Therefore, there will be fields for registration, and fields for posts, and the form will have to create the user according to the registration fields (unless the user already exists) , and then create the post according to the post fields, and attribute the post to that created user, so that when that user logs in to the admin, he will see only the posts that he submitted (the same user should be able to submit the form multiple times, for multiple posts).  &#60;/p&#62;
&#60;p&#62;How can I do this?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
