<?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: Random chanracters in hidden field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field</link>
		<description>Gravity Support Forums Topic: Random chanracters in hidden field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:38: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/random-chanracters-in-hidden-field" rel="self" type="application/rss+xml" />

		<item>
			<title>helloari on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-6795</link>
			<pubDate>Mon, 28 Jun 2010 23:34:02 +0000</pubDate>
			<dc:creator>helloari</dc:creator>
			<guid isPermaLink="false">6795@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok. all my numbers generated with uniqid start with 4c since they seem to be based on a timestamp. doesn't feel very random that way but it's good enough. thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-6763</link>
			<pubDate>Mon, 28 Jun 2010 12:06:15 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">6763@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It looks like you will need to make a decision here. You won't be able to have a short and unique number, simply because there are so many combinations a short number will be able to support.&#60;br /&#62;
If you need the numbers to be unique and random, my suggestion is to use uniqid(). The number will be large, but that's the price you pay to have an unique number.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>helloari on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-6753</link>
			<pubDate>Mon, 28 Jun 2010 01:36:25 +0000</pubDate>
			<dc:creator>helloari</dc:creator>
			<guid isPermaLink="false">6753@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;but how can i make sure that number has not been used before? it needs to be unique and sort and random...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-5273</link>
			<pubDate>Wed, 05 May 2010 14:47:46 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">5273@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Try using mt_rand() instead.&#60;br /&#62;
For example, mt_rand(5,15) will generate random numbers between 5 and 15. You can change the parameters to whatever numbers you need.&#60;/p&#62;
&#60;p&#62;You can find more info on mt_rand() here:&#60;br /&#62;
&#60;a href=&#34;http://www.php.net/manual/en/function.mt-rand.php&#34; rel=&#34;nofollow&#34;&#62;http://www.php.net/manual/en/function.mt-rand.php&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>helloari on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-5029</link>
			<pubDate>Tue, 27 Apr 2010 05:42:02 +0000</pubDate>
			<dc:creator>helloari</dc:creator>
			<guid isPermaLink="false">5029@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i used uniqid and it works well but i want a shorter id. how can i control the length? i tried something from this page &#60;a href=&#34;http://us.php.net/manual/en/function.uniqid.php&#34; rel=&#34;nofollow&#34;&#62;http://us.php.net/manual/en/function.uniqid.php&#60;/a&#62; but could not get it to work. help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-1396</link>
			<pubDate>Mon, 09 Nov 2009 11:32:00 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1396@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sascha,&#60;br /&#62;
To generate random numbers, replace:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
return uniqid();&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;by:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
return mt_rand();&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That should give you numeric numbers instead. You can also control the minimum and maximum number generated by mt_rand() by passing them as parameters. For example: mt_rand(5,15) will generate random numbers between 5 and 15.&#60;br /&#62;
You can find more info on mt_rand() here:&#60;br /&#62;
&#60;a href=&#34;http://www.php.net/manual/en/function.mt-rand.php&#34; rel=&#34;nofollow&#34;&#62;http://www.php.net/manual/en/function.mt-rand.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Good Luck.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Raintrader on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-1392</link>
			<pubDate>Mon, 09 Nov 2009 06:21:27 +0000</pubDate>
			<dc:creator>Raintrader</dc:creator>
			<guid isPermaLink="false">1392@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Alex,&#60;/p&#62;
&#60;p&#62; i also used te above posted Snippet in my function.php ans it works properly that way.&#60;br /&#62;
 Is there a way to influence the random text that is created ?&#60;br /&#62;
Using this function  generates text like this : 4af6b98a935f9&#60;br /&#62;
Is it possible to to generate a random numeric string like :  89571547852 instead ?&#60;/p&#62;
&#60;p&#62;Thanx in advance&#60;/p&#62;
&#60;p&#62;Sascha
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RobertLBasil on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-1198</link>
			<pubDate>Mon, 26 Oct 2009 18:32:59 +0000</pubDate>
			<dc:creator>RobertLBasil</dc:creator>
			<guid isPermaLink="false">1198@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl,&#60;/p&#62;
&#60;p&#62;Yes, I am sending them to a wordpress page. I'll just pull the variables out of the URL and pass them to the page. We already have a lot of custom php code in this &#34;thank you&#34; page, that is why we can't use the default &#34;Confirmation Text&#34; options.&#60;/p&#62;
&#60;p&#62;Thanks for your help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-1197</link>
			<pubDate>Mon, 26 Oct 2009 18:28:11 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">1197@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just a quick note, the form field variables such as:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;{Hidden Field:6}&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Are only going to work within Gravity Forms controlled text output such as the Notification emails and the built in Confirmation Text field.  &#60;/p&#62;
&#60;p&#62;If you are redirecting to a WordPress page for the confirmation, these don't work as you are redirecting to a WordPress page and Gravity Forms doesn't control this.&#60;/p&#62;
&#60;p&#62;If you are using the redirect and passing data in the query string you will need to use PHP to pull in and display the query string value... or use the built in Confirmation Text capabilities of Gravity Forms.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Random chanracters in hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-chanracters-in-hidden-field#post-1196</link>
			<pubDate>Mon, 26 Oct 2009 18:25:59 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">1196@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm a little confused as to what you are using for a confirmation page.  Are you using the built in confirmation page text and the form field variables, or are you redirecting to a page and passing the values in the query string?&#60;/p&#62;
&#60;p&#62;If you are redirecting to a WordPress page and passing the values in a query string you will need to use PHP to pull in those values and display them.  Once you redirect to another page it is outside Gravity Forms control so you need to use PHP to manipulate the data in the query string.&#60;/p&#62;
&#60;p&#62;If you are using the built in text confirmation by entering your confirmation text in the form settings, the form field variables should work.   If you are doing it this way, are you saying the form field variables for your hidden fields aren't working?  If this is this case, have you verified that values exist for those hidden fields by viewing the Entry and checking to see that you are in fact storing the hidden field data?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
