• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Filter surveys that come from public e-mails

Filter surveys that come from public e-mails 16 years 9 months ago #1140

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
You can add this code to the Scripts Tab, in the \"Scripts called on form process\" to filter public e-mail providers such as yahoo, gmail.
$form_check = mosGetParam($_POST,'form',array());
if(isset($form_check['email'])){ //make sure that your e-mail field id is called \"email\", otherwise change it here
	$avvoid = array('hotmail','yahoo','gmail');//add all the providers you want to filter.
	$found = false;
	foreach($avvoid as $avvoid_key){
		if(strpos($form_check['email'],$avvoid_key)){//make sure that your e-mail field id is called \"email\", otherwise change it here
			$found = true;
		}
	}
 
	if($found) mosRedirect('http://www.link.to.a.content.item.that.says.that.public.emails.are.not.allowed');
}

Of course, suggestions and improvements are welcomed.<br><br>Post edited by: alex, at: 2007/08/05 12:44
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!