<?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: ZipCode Validation Questions</title>
		<link>https://legacy.forums.gravityhelp.com/topic/zipcode-validation-questions</link>
		<description>Gravity Support Forums Topic: ZipCode Validation Questions</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 09:03:06 +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/zipcode-validation-questions" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "ZipCode Validation Questions"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/zipcode-validation-questions#post-24741</link>
			<pubDate>Tue, 03 May 2011 16:44:27 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">24741@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can't help you with the JS, only to tell you the JS would go in the theme template file used to display the page that contains the form.  As for doing it with PHP, you would place the custom PHP in your themes functions.php file.&#60;/p&#62;
&#60;p&#62;To do it with PHP you would use the gform_validation hook.  Documentation for this hook can be found here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_validation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;A complete tutorial on how to use the gform_validation hook can be found here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_valiation%22_Hook&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_valiation%22_Hook&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;As for creating a MySQL table for your custom zipcode data, you'd have to look that up on how to use MySQL.  That is outside the scope of Gravity Forms itself and more general MySQL/PHP type information.  Your code to match against this data would be part of the code you write for the gform_validation hook that would go in your themes functions.php file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leonardo1134 on "ZipCode Validation Questions"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/zipcode-validation-questions#post-24738</link>
			<pubDate>Tue, 03 May 2011 16:34:20 +0000</pubDate>
			<dc:creator>leonardo1134</dc:creator>
			<guid isPermaLink="false">24738@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;#1: Have a 5 digit zip code on a form and need to verify length = 5 and all values are numeric.  To implement with javascript where would I put the js? To implement with php, where would I put the code? &#60;/p&#62;
&#60;p&#62;#2: With same 5 digit zip code form. I want to verify the zip entered against a table. How do I go about creating a mysql zipcode table from a spreadsheet or csv? Where would I add php code to perform an exact match lookup? And how do I handle bubbling up an error message back to the user?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
