This topic is: resolved
-
Here Daniel with the zip code problem, i´ve tried the custom code and didn´t work.
i insert the code in the bottom of the function.php file and change variables in code like this:
function dh_validate_zip_code_custom($form_id){
//default your zip code
$zipcodes = array(‘33009′,’33180’);
//check form POST zip code. example zip code field name [my_zipcode]
if(isset($_POST[‘my_zipcode’]) && in_array($_POST[‘my_zipcode’], $zipcodes )){
wp_redirect(‘ http://www.ecohangercleaner.com/about/’);
}
return;
}
add_action(‘dhvc_form_after_processor’, ‘dh_validate_zip_code_custom’,10,1);URL: http://www.ecohangercleaner.com/home/
Please i will Really appreciate your help, i am in troubles with this!!!
Thank you very much
Daniel