//your e-mail address:
$eaddress = 'menchb@yahoo.com';
//title of the contact form
$title = 'AFMA Contact Us';
//$where your page is relocated to:
$relocate = 'http://www.afma.nafc.ph';
//$title2 is the name of your site:
$title2 = 'afma.nafc.com.ph';
//$website is the address of your site, e.g. irealms.co.uk, there is no need for the 'http://www.' part:
$website = 'afma.nafc.ph';
/*
Welcome to Contact Form Version 2.2
2.2 update is that you can now reply to the user without any difficulties.
This version enables you to set which colours that you wish to the form, from font size, colour to tbe contact forms background colour.
When it comes to setting the colours you can either use a hex value, e.g. #81AACD or type a colour, e.g. black. Hex codes can be found on
http://hotwired.lycos.com/webmonkey/reference/color_codes/
NOTE: This is a stand alone version. All editing is done up to the dotted line.
*/
//set web page's background colour to:
$background ='#FFFFFF';
//set text colour, e.g. Your Name:
$tcolour ='black';
//set font size, e.g. Your Name:
$tfontsize ='12';
//set the colour of the font:
$colour ='white';
//set the font size:
$fontsize ='10';
//set border type:
$border_type ='solid';
//set border width:
$border_width ='1';
//set border colour:
$border_colour ='black';
//set background colour:
$background_colour ='#81AACD';
//set button text colour:
$button_colour ='black';
//set text decoration:
$text_decoration ='none';
//set button's font size:
$button_font ='11';
//set button's background colour:
$button_background_colour ='#81AACD';
//set button's style border:
$border_style ='outset';
//set the width of the button:
$border_width_button ='3';
//set button's line height:
$button_line_height ='12';
/*
do not edit below the dotted line
--------------------------------------------------------------------------------------------------------------
*/
$namea = '';
$emaila = '';
$subjecta = '';
$commentsa = '';
$n = '';
$e = '';
$e1 = '';
$s = '';
$c = '';
$try = '';
$try1 = '';
$try2 = '';
$try3 = '';
if(isset($_POST['contact']))
{
if(strlen($_POST['namea'])>0)
{
$n = '1';
}
else
{
$try = '* please enter your name';
}
if(strlen($_POST['emaila'])>0)
{
$e = '1';
}
else
{
$try1 = '* please enter your e-mail address';
}
if (ereg("^[a-zA_Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $_POST['emaila']))
{
$e1 = '1';
}
else
{
$try1a = '* please enter your email address correctly';
}
if(strlen($_POST['subjecta'])>0)
{
$s = '1';
}
else
{
$try2 = '* please enter a subject';
}
if(strlen($_POST['commentsa'])>0)
{
$c = '1';
}
else
{
$try3 = '* please enter any comment(s) you might have';
}
}
if( $n == '1' && $e == '1' && $e1 == '1' && $s == '1' && $c == '1')
{
$string = ''.$_POST['commentsa'].'';
$string = str_replace("", "
<--Javascript code section end-->", $string);
$string = str_replace("", "<--PHP in message disabled, code is below-->
", $string);
$string = str_replace("?>", "
<--PHP code section end-->", $string);
$string = str_replace("\n", "
", $string);
$name = $_POST['namea'];
$usermail = $_POST['emaila'];
$usersubj = $_POST['subjecta'];
$usercom = ''.$string.'';
$emailto = ''.$eaddress.'';
$subj = $_POST['subjecta'];
$mesg = '
The Following was submitted from
'.$title2.'
Comments:
'."\n";
mail($emailto, $subj, $mesg, 'From: '.$_POST['emaila'].''."\r\n".'Content-Type: text/html; charset=iso-8859-1\n Content-Transfer-Encoding: 8bit\n')or die('mail not sent');
header('Location: '.$relocate.'');
}
?>
echo ''.$title.''; ?>
echo '