<?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: Custom PHP Validation for email domains -- Help Needed</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-php-validation-for-email-domains-help-needed</link>
		<description>Gravity Support Forums Topic: Custom PHP Validation for email domains -- Help Needed</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 13:37:57 +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/custom-php-validation-for-email-domains-help-needed" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Custom PHP Validation for email domains -- Help Needed"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-php-validation-for-email-domains-help-needed#post-32133</link>
			<pubDate>Tue, 09 Aug 2011 15:05:15 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">32133@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can use the gform_validation hook to write custom validation for a field.  There is a tutorial on how to use this hook 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;You would write custom validation using the gform_validation hook using the validation code you have to write your own custom validation.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Custom PHP Validation for email domains -- Help Needed"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-php-validation-for-email-domains-help-needed#post-32122</link>
			<pubDate>Tue, 09 Aug 2011 14:46:19 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">32122@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Alex et al, I was hoping someone could help with this issue. Posted on someone else's thread but never saw a reply there so posting a new topic here:&#60;/p&#62;
&#60;p&#62;My client wants us to validate the email field to ensure it's not coming from any free email hosts (they want commercial entities only). Here's their original code snippet for this validation... my question is how do I incorporate this into GF?&#60;/p&#62;
&#60;p&#62;URL to current form page:&#60;br /&#62;
&#60;a href=&#34;http://www.sdmsoftware.com/freeware-registration-form/&#34; rel=&#34;nofollow&#34;&#62;http://www.sdmsoftware.com/freeware-registration-form/&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;Validation code snippet can be found here:&#60;br /&#62;
&#60;a href=&#34;http://dl.dropbox.com/u/19790225/email_form_validation.php&#34; rel=&#34;nofollow&#34;&#62;http://dl.dropbox.com/u/19790225/email_form_validation.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;or view here:&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/Gf5Dhzve&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/Gf5Dhzve&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Sean
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
