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 isEmail($str)
{
if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $str))
return true;
else
return false;
}
function form_4_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_4_class='form_4_error';
$form_4_error='';
$form_4_spam=0;
$form_4_td_23_class='form_4_info';
$form_4_td_23_error=' ';
$form_4_td_23_value='';
$form_4_td_24_class='form_4_info';
$form_4_td_24_error=' ';
$form_4_td_24_value='';
$form_4_td_25_class='form_4_info';
$form_4_td_25_error=' ';
$form_4_td_25_value='';
$form_4_td_26_class='form_4_info';
$form_4_td_26_error=' ';
$form_4_td_26_value='';
$form_4_td_27_class='form_4_info';
$form_4_td_27_error=' ';
$form_4_td_27_value='';
if ('aqoqqvxb'==my_get_post('form_4_submit'))
{
$form_4_error_string='There are errors which need correction.';
$form_4_td_23_error_class='form_4_error';
$form_4_td_23_error_validation='Error: This field must be an email!';
$form_4_td_23_error_spam='Error: http: < > are not allowed!';
$form_4_td_23_value=my_get_post('Youremailaddress' ,true);
$form_4_body.='Youremailaddress : '.my_get_post('Youremailaddress')."\r\n";
if ($form_4_td_23_class!=$form_4_td_23_error_class && ''!=trim(my_get_post('Youremailaddress')) && !isEmail(my_get_post('Youremailaddress'))) {$form_4_td_23_class=$form_4_td_23_error_class; $form_4_td_23_error=$form_4_td_23_error_validation; $form_4_error=$form_4_error_string;}
$form_4_td_23_spam=form_4_count_spam(my_get_post('Youremailaddress'));
if ($form_4_td_23_spam>0)
{
if ($form_4_td_23_class!=$form_4_td_23_error_class) {$form_4_td_23_class=$form_4_td_23_error_class; $form_4_td_23_error=$form_4_td_23_error_spam; $form_4_error=$form_4_error_string;}
$form_4_spam += $form_4_td_23_spam;
}
$form_4_td_24_error_class='form_4_error';
$form_4_td_24_error_must='Error: This field is required!';
$form_4_td_24_error_spam='Error: http: < > are not allowed!';
$form_4_td_24_value=my_get_post('NameofCaller' ,true);
$form_4_body.='NameofCaller : '.my_get_post('NameofCaller')."\r\n";
if (''==trim(my_get_post('NameofCaller'))) {$form_4_td_24_class=$form_4_td_24_error_class; $form_4_td_24_error=$form_4_td_24_error_must; $form_4_error=$form_4_error_string;}
$form_4_td_24_spam=form_4_count_spam(my_get_post('NameofCaller'));
if ($form_4_td_24_spam>0)
{
if ($form_4_td_24_class!=$form_4_td_24_error_class) {$form_4_td_24_class=$form_4_td_24_error_class; $form_4_td_24_error=$form_4_td_24_error_spam; $form_4_error=$form_4_error_string;}
$form_4_spam += $form_4_td_24_spam;
}
$form_4_td_25_error_class='form_4_error';
$form_4_td_25_error_must='Error: This field is required!';
$form_4_td_25_error_spam='Error: http: < > are not allowed!';
$form_4_td_25_value=my_get_post('SiteLocation' ,true);
$form_4_body.='SiteLocation : '.my_get_post('SiteLocation')."\r\n";
if (''==trim(my_get_post('SiteLocation'))) {$form_4_td_25_class=$form_4_td_25_error_class; $form_4_td_25_error=$form_4_td_25_error_must; $form_4_error=$form_4_error_string;}
$form_4_td_25_spam=form_4_count_spam(my_get_post('SiteLocation'));
if ($form_4_td_25_spam>0)
{
if ($form_4_td_25_class!=$form_4_td_25_error_class) {$form_4_td_25_class=$form_4_td_25_error_class; $form_4_td_25_error=$form_4_td_25_error_spam; $form_4_error=$form_4_error_string;}
$form_4_spam += $form_4_td_25_spam;
}
$form_4_td_26_error_class='form_4_error';
$form_4_td_26_error_must='Error: This field is required!';
$form_4_td_26_error_spam='Error: http: < > are not allowed!';
$form_4_td_26_value=my_get_post('Phone' ,true);
$form_4_body.='Phone : '.my_get_post('Phone')."\r\n";
if (''==trim(my_get_post('Phone'))) {$form_4_td_26_class=$form_4_td_26_error_class; $form_4_td_26_error=$form_4_td_26_error_must; $form_4_error=$form_4_error_string;}
$form_4_td_26_spam=form_4_count_spam(my_get_post('Phone'));
if ($form_4_td_26_spam>0)
{
if ($form_4_td_26_class!=$form_4_td_26_error_class) {$form_4_td_26_class=$form_4_td_26_error_class; $form_4_td_26_error=$form_4_td_26_error_spam; $form_4_error=$form_4_error_string;}
$form_4_spam += $form_4_td_26_spam;
}
$form_4_td_27_error_class='form_4_error';
$form_4_td_27_error_must='Error: This field is required!';
$form_4_td_27_error_spam='Error: http: < > are not allowed!';
$form_4_td_27_value=my_get_post('DescriptionofProblemorCall' ,true);
$form_4_body.='DescriptionofProblemorCall : '.my_get_post('DescriptionofProblemorCall')."\r\n";
if (''==trim(my_get_post('DescriptionofProblemorCall'))) {$form_4_td_27_class=$form_4_td_27_error_class; $form_4_td_27_error=$form_4_td_27_error_must; $form_4_error=$form_4_error_string;}
$form_4_td_27_spam=form_4_count_spam(my_get_post('DescriptionofProblemorCall'));
if ($form_4_td_27_spam>0)
{
if ($form_4_td_27_class!=$form_4_td_27_error_class) {$form_4_td_27_class=$form_4_td_27_error_class; $form_4_td_27_error=$form_4_td_27_error_spam; $form_4_error=$form_4_error_string;}
$form_4_spam += $form_4_td_27_spam;
}
if (''==trim($form_4_error) && 0==$form_4_spam)
{
$receiver='service@spectech.bm';
$subject='Service Request ';
if (isEmail( $form_4_td_25_value )) $header='From: '.$form_4_td_25_value;
$subject.=$form_4_td_27_value;
$subject= substr($subject, 0, 255);
$subject=str_replace("\n", " ", $subject);
$subject=str_replace("\r", " ", $subject);
$body=str_replace("\n.", "\n..", $form_4_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.spectech.bm/thank-you.htm';
if (!headers_sent()){
header('Location: '.$url); exit;
}else{
echo '';
echo ''; exit;
}
exit;
}
}
if (trim($form_4_error)) $form_4_error="
$form_4_error
";
}
if ($form_4_spam >= 3) sleep(20);
if ($form_4_spam >= 3) $form_4_td_23_value='';
if ($form_4_spam >= 3) $form_4_td_24_value='';
if ($form_4_spam >= 3) $form_4_td_25_value='';
if ($form_4_spam >= 3) $form_4_td_26_value='';
if ($form_4_spam >= 3) $form_4_td_27_value='';
?>
Specialized Technologies Limited
We're now the local distributors for more GREEN ENERGY Products!!
TRACE International, Inc. is a non-profit membership association that pools resources to provide practical and cost-effective anti-bribery compliance solutions for multinational companies and their commercial intermediaries (sales agents and representatives, consultants, distributors, suppliers, etc.).
Service Request Form:
Please fill out below required information so we can provide the best responce and we will be able to reach you in case we have any questions.