function my_get_post($name,$escape=false)
{
$var_read = '';
if (isset($_POST[$name]))
{
$var_read = $_POST[$name];
if (get_magic_quotes_gpc()) $var_read=stripslashes($var_read);
if ($escape) $var_read=htmlspecialchars($var_read,ENT_QUOTES);
}
return $var_read;
}
function form_43_count_spam($str)
{
$nb=0;
$word='http:';
if (stristr($str,$word)) $nb++;
$word='<';
if (stristr($str,$word)) $nb++;
$word='>';
if (stristr($str,$word)) $nb++;
return $nb;
}
$form_43_class='form_43_error';
$form_43_error='';
$form_43_spam=0;
$form_43_td_491_class='form_43_info';
$form_43_td_491_error=' ';
$form_43_td_491_value='';
$form_43_td_492_class='form_43_info';
$form_43_td_492_error=' ';
$form_43_td_492_value='';
$form_43_td_493_class='form_43_info';
$form_43_td_493_error=' ';
$form_43_td_493_value='';
$form_43_td_494_class='form_43_info';
$form_43_td_494_error=' ';
$form_43_td_494_value='';
$form_43_td_495_class='form_43_info';
$form_43_td_495_error=' ';
$form_43_td_495_value='';
$form_43_td_496_class='form_43_info';
$form_43_td_496_error=' ';
$form_43_td_496_value='';
$form_43_td_497_class='form_43_info';
$form_43_td_497_error=' ';
$form_43_td_497_value='';
$form_43_td_498_class='form_43_info';
$form_43_td_498_error=' ';
$form_43_td_498_value='';
$form_43_td_499_class='form_43_info';
$form_43_td_499_error=' ';
$select_1109_value='ArtCulturalAffairs';
$select_1109_checked='0';
$select_1110_value='Manufacturing';
$select_1110_checked='0';
$select_1111_value='CommunityOutreach';
$select_1111_checked='0';
$select_1112_value='Education';
$select_1112_checked='0';
$select_1113_value='Entertainment';
$select_1113_checked='0';
$select_1114_value='FaithBasedGroups';
$select_1114_checked='0';
$select_1115_value='GroceryStore';
$select_1115_checked='0';
$select_1116_value='IndividualsFamilies';
$select_1116_checked='0';
$select_1117_value='LocalGovernment';
$select_1117_checked='0';
$select_1118_value='Media';
$select_1118_checked='0';
$select_1119_value='NeighborhooldAssociation';
$select_1119_checked='0';
$select_1120_value='NonProfit';
$select_1120_checked='0';
$select_1121_value='PharmacyMedical';
$select_1121_checked='0';
$select_1122_value='RestaurantCoffee';
$select_1122_checked='0';
$select_1123_value='Retail';
$select_1123_checked='0';
$select_1124_value='Services';
$select_1124_checked='0';
$select_1125_value='SocialServices';
$select_1125_checked='0';
$select_1126_value='SpaSalon';
$select_1126_checked='0';
$form_43_td_500_class='form_43_info';
$form_43_td_500_error=' ';
$form_43_td_500_value='';
$form_43_td_501_class='form_43_info';
$form_43_td_501_error=' ';
$form_43_td_501_value='';
$form_43_td_503_class='form_43_info';
$form_43_td_503_error=' ';
$select_1133_value='IhavereadandagreetotheTermsandConditions';
$select_1133_checked='0';
if ('cbihpzcg'==my_get_post('form_43_submit'))
{
$form_43_error_string='There are errors which need correction.';
$form_43_td_491_error_class='form_43_error';
$form_43_td_491_error_spam='Error: http: < > are not allowed!';
$form_43_td_491_value=my_get_post('FirstName' ,true);
$form_43_body.='FirstName : '.my_get_post('FirstName')."\r\n";
$form_43_td_491_spam=form_43_count_spam(my_get_post('FirstName'));
if ($form_43_td_491_spam>0)
{
if ($form_43_td_491_class!=$form_43_td_491_error_class) {$form_43_td_491_class=$form_43_td_491_error_class; $form_43_td_491_error=$form_43_td_491_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_491_spam;
}
$form_43_td_492_error_class='form_43_error';
$form_43_td_492_error_spam='Error: http: < > are not allowed!';
$form_43_td_492_value=my_get_post('LastName' ,true);
$form_43_body.='LastName : '.my_get_post('LastName')."\r\n";
$form_43_td_492_spam=form_43_count_spam(my_get_post('LastName'));
if ($form_43_td_492_spam>0)
{
if ($form_43_td_492_class!=$form_43_td_492_error_class) {$form_43_td_492_class=$form_43_td_492_error_class; $form_43_td_492_error=$form_43_td_492_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_492_spam;
}
$form_43_td_493_error_class='form_43_error';
$form_43_td_493_error_spam='Error: http: < > are not allowed!';
$form_43_td_493_value=my_get_post('Youremailaddress' ,true);
$form_43_body.='Youremailaddress : '.my_get_post('Youremailaddress')."\r\n";
$form_43_td_493_spam=form_43_count_spam(my_get_post('Youremailaddress'));
if ($form_43_td_493_spam>0)
{
if ($form_43_td_493_class!=$form_43_td_493_error_class) {$form_43_td_493_class=$form_43_td_493_error_class; $form_43_td_493_error=$form_43_td_493_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_493_spam;
}
$form_43_td_494_error_class='form_43_error';
$form_43_td_494_error_spam='Error: http: < > are not allowed!';
$form_43_td_494_value=my_get_post('NameofBusinessorCollege' ,true);
$form_43_body.='NameofBusinessorCollege : '.my_get_post('NameofBusinessorCollege')."\r\n";
$form_43_td_494_spam=form_43_count_spam(my_get_post('NameofBusinessorCollege'));
if ($form_43_td_494_spam>0)
{
if ($form_43_td_494_class!=$form_43_td_494_error_class) {$form_43_td_494_class=$form_43_td_494_error_class; $form_43_td_494_error=$form_43_td_494_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_494_spam;
}
$form_43_td_495_error_class='form_43_error';
$form_43_td_495_error_spam='Error: http: < > are not allowed!';
$form_43_td_495_value=my_get_post('NameofGrouporAssociation' ,true);
$form_43_body.='NameofGrouporAssociation : '.my_get_post('NameofGrouporAssociation')."\r\n";
$form_43_td_495_spam=form_43_count_spam(my_get_post('NameofGrouporAssociation'));
if ($form_43_td_495_spam>0)
{
if ($form_43_td_495_class!=$form_43_td_495_error_class) {$form_43_td_495_class=$form_43_td_495_error_class; $form_43_td_495_error=$form_43_td_495_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_495_spam;
}
$form_43_td_496_error_class='form_43_error';
$form_43_td_496_error_spam='Error: http: < > are not allowed!';
$form_43_td_496_value=my_get_post('LocationCity' ,true);
$form_43_body.='LocationCity : '.my_get_post('LocationCity')."\r\n";
$form_43_td_496_spam=form_43_count_spam(my_get_post('LocationCity'));
if ($form_43_td_496_spam>0)
{
if ($form_43_td_496_class!=$form_43_td_496_error_class) {$form_43_td_496_class=$form_43_td_496_error_class; $form_43_td_496_error=$form_43_td_496_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_496_spam;
}
$form_43_td_497_error_class='form_43_error';
$form_43_td_497_error_spam='Error: http: < > are not allowed!';
$form_43_td_497_value=my_get_post('ContactPhone' ,true);
$form_43_body.='ContactPhone : '.my_get_post('ContactPhone')."\r\n";
$form_43_td_497_spam=form_43_count_spam(my_get_post('ContactPhone'));
if ($form_43_td_497_spam>0)
{
if ($form_43_td_497_class!=$form_43_td_497_error_class) {$form_43_td_497_class=$form_43_td_497_error_class; $form_43_td_497_error=$form_43_td_497_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_497_spam;
}
$form_43_td_498_error_class='form_43_error';
$form_43_td_498_error_spam='Error: http: < > are not allowed!';
$form_43_td_498_value=my_get_post('WebsiteBlogurls' ,true);
$form_43_body.='WebsiteBlogurls : '.my_get_post('WebsiteBlogurls')."\r\n";
$form_43_td_498_spam=form_43_count_spam(my_get_post('WebsiteBlogurls'));
if ($form_43_td_498_spam>0)
{
if ($form_43_td_498_class!=$form_43_td_498_error_class) {$form_43_td_498_class=$form_43_td_498_error_class; $form_43_td_498_error=$form_43_td_498_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_498_spam;
}
$form_43_td_499_error_class='form_43_error';
$form_43_td_499_value=my_get_post('CategoriesforListing' );
$form_43_body.='CategoriesforListing : '.my_get_post('CategoriesforListing')."\r\n";
if ($form_43_td_499_value == $select_1109_value) $select_1109_checked=1; else $select_1109_checked=0;
if ($form_43_td_499_value == $select_1110_value) $select_1110_checked=1; else $select_1110_checked=0;
if ($form_43_td_499_value == $select_1111_value) $select_1111_checked=1; else $select_1111_checked=0;
if ($form_43_td_499_value == $select_1112_value) $select_1112_checked=1; else $select_1112_checked=0;
if ($form_43_td_499_value == $select_1113_value) $select_1113_checked=1; else $select_1113_checked=0;
if ($form_43_td_499_value == $select_1114_value) $select_1114_checked=1; else $select_1114_checked=0;
if ($form_43_td_499_value == $select_1115_value) $select_1115_checked=1; else $select_1115_checked=0;
if ($form_43_td_499_value == $select_1116_value) $select_1116_checked=1; else $select_1116_checked=0;
if ($form_43_td_499_value == $select_1117_value) $select_1117_checked=1; else $select_1117_checked=0;
if ($form_43_td_499_value == $select_1118_value) $select_1118_checked=1; else $select_1118_checked=0;
if ($form_43_td_499_value == $select_1119_value) $select_1119_checked=1; else $select_1119_checked=0;
if ($form_43_td_499_value == $select_1120_value) $select_1120_checked=1; else $select_1120_checked=0;
if ($form_43_td_499_value == $select_1121_value) $select_1121_checked=1; else $select_1121_checked=0;
if ($form_43_td_499_value == $select_1122_value) $select_1122_checked=1; else $select_1122_checked=0;
if ($form_43_td_499_value == $select_1123_value) $select_1123_checked=1; else $select_1123_checked=0;
if ($form_43_td_499_value == $select_1124_value) $select_1124_checked=1; else $select_1124_checked=0;
if ($form_43_td_499_value == $select_1125_value) $select_1125_checked=1; else $select_1125_checked=0;
if ($form_43_td_499_value == $select_1126_value) $select_1126_checked=1; else $select_1126_checked=0;
$form_43_td_500_error_class='form_43_error';
$form_43_td_500_error_spam='Error: http: < > are not allowed!';
$form_43_td_500_value=my_get_post('AddaDescriptionofyouoryourbusiness250charactersmax' ,true);
$form_43_body.='AddaDescriptionofyouoryourbusiness250charactersmax : '.my_get_post('AddaDescriptionofyouoryourbusiness250charactersmax')."\r\n";
$form_43_td_500_spam=form_43_count_spam(my_get_post('AddaDescriptionofyouoryourbusiness250charactersmax'));
if ($form_43_td_500_spam>0)
{
if ($form_43_td_500_class!=$form_43_td_500_error_class) {$form_43_td_500_class=$form_43_td_500_error_class; $form_43_td_500_error=$form_43_td_500_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_500_spam;
}
$form_43_td_501_error_class='form_43_error';
$form_43_td_501_error_spam='Error: http: < > are not allowed!';
$form_43_td_501_value=my_get_post('SpecialCommentsEcofriendlyNaturalOrganicetc' ,true);
$form_43_body.='SpecialCommentsEcofriendlyNaturalOrganicetc : '.my_get_post('SpecialCommentsEcofriendlyNaturalOrganicetc')."\r\n";
$form_43_td_501_spam=form_43_count_spam(my_get_post('SpecialCommentsEcofriendlyNaturalOrganicetc'));
if ($form_43_td_501_spam>0)
{
if ($form_43_td_501_class!=$form_43_td_501_error_class) {$form_43_td_501_class=$form_43_td_501_error_class; $form_43_td_501_error=$form_43_td_501_error_spam; $form_43_error=$form_43_error_string;}
$form_43_spam += $form_43_td_501_spam;
}
$form_43_td_503_error_class='form_43_error';
$form_43_td_503_error_must='Error: This field is required!';
$form_43_body.='agree : '.my_get_post('agree')."\r\n";
if (my_get_post('agree') == $select_1133_value) $select_1133_checked=1; else $select_1133_checked=0;
if ($select_1133_checked!=1) {$form_43_td_503_class=$form_43_td_503_error_class; $form_43_td_503_error=$form_43_td_503_error_must; $form_43_error=$form_43_error_string;}
if (''==trim($form_43_error) && 0==$form_43_spam)
{
$receiver='info@onecommunitytoday.com';
$subject='Join Form Result -- ';
$subject= substr($subject, 0, 255);
$subject=str_replace("\n", " ", $subject);
$subject=str_replace("\r", " ", $subject);
$body=str_replace("\n.", "\n..", $form_43_body);
if ($body!="")
{
$result=mail($receiver,$subject,$body,$header);
if (!result)
{
echo 'ERROR: The PHP mail function mail($receiver,$subject,$body,$header); does not work properly on your server, please contact your web hosting.';
exit;
}
}
if ($result)
{
$url='http://www.onecommunitytoday.com/Thankyou.htm';
if (!headers_sent()){
header('Location: '.$url); exit;
}else{
echo '';
echo ''; exit;
}
exit;
}
}
if (trim($form_43_error)) $form_43_error="
$form_43_error
";
}
if ($form_43_spam >= 3) sleep(20);
if ($form_43_spam >= 3) $form_43_td_491_value='';
if ($form_43_spam >= 3) $form_43_td_492_value='';
if ($form_43_spam >= 3) $form_43_td_493_value='';
if ($form_43_spam >= 3) $form_43_td_494_value='';
if ($form_43_spam >= 3) $form_43_td_495_value='';
if ($form_43_spam >= 3) $form_43_td_496_value='';
if ($form_43_spam >= 3) $form_43_td_497_value='';
if ($form_43_spam >= 3) $form_43_td_498_value='';
if ($form_43_spam >= 3) $select_1109_checked='0';
if ($form_43_spam >= 3) $select_1110_checked='0';
if ($form_43_spam >= 3) $select_1111_checked='0';
if ($form_43_spam >= 3) $select_1112_checked='0';
if ($form_43_spam >= 3) $select_1113_checked='0';
if ($form_43_spam >= 3) $select_1114_checked='0';
if ($form_43_spam >= 3) $select_1115_checked='0';
if ($form_43_spam >= 3) $select_1116_checked='0';
if ($form_43_spam >= 3) $select_1117_checked='0';
if ($form_43_spam >= 3) $select_1118_checked='0';
if ($form_43_spam >= 3) $select_1119_checked='0';
if ($form_43_spam >= 3) $select_1120_checked='0';
if ($form_43_spam >= 3) $select_1121_checked='0';
if ($form_43_spam >= 3) $select_1122_checked='0';
if ($form_43_spam >= 3) $select_1123_checked='0';
if ($form_43_spam >= 3) $select_1124_checked='0';
if ($form_43_spam >= 3) $select_1125_checked='0';
if ($form_43_spam >= 3) $select_1126_checked='0';
if ($form_43_spam >= 3) $form_43_td_500_value='';
if ($form_43_spam >= 3) $form_43_td_501_value='';
if ($form_43_spam >= 3) $select_1133_checked='0';
?>
One Community Today Sonoma County Community Join Us
Become a member and join a community focused on social responsibility. Find out where to shop, plan for upcoming farmers or craft markets, learn frombusiness presentations and discussion groups, or volunteer for community projects. And, of course, all members have the opportunity to participate in the Annual One Community Today Awards at the end of each year!