javascript - How to restrict certain email addresses in RS Forms Pro Joomla -


i use rsformpro contact form in joomla v3.1.x site.

for particular reason, need add 3 or 4 email addresses 'not allowed' submit form upon validation.

i.e. joe@domain1.com, frank@gmail.com, sue@yahoo.com, deniise@domain2.com

how can ? please advice.

=============== edited

for else looking answer, please see below:

answer...

for script work have replace below "mytextbox" email textbox exact name.

the script added within "script called on form process" area (joomla backend > components > rsform!pro > manage forms > form > properties > php scripts).

$array = array('joe@domain1.com','frank@gmail.com','sue@yahoo.com','denise@domain2.com');  foreach($array $arr){ if($_post['form']['mytextbox'] == $arr) $invalid[] = rsformprohelper::getcomponentid('mytextbox'); } 

so of email addresses see in above array, validate & prompt 'invalid' message.


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -