check($_POST['code']);
if(strlen($flduser) <= 0)
{
$flderrMsg .= "* Please enter Name.
";
}
if(strlen($fldemailaddress) <= 0)
{
$flderrMsg .= "* Please enter Email-Id.
";
}
// This is to prevent email_header_injection.
// http://www.nyphp.org/phundamentals/email_header_injection.php
$emailPattern = '/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i';
if($fldemailaddress != "")
{
if((!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$" ,$fldemailaddress))
||
(!preg_match($emailPattern, $fldemailaddress)))
{
$flderrMsg .= "* Enter a valid E-mail Address
";
}
}
if(strlen($fldcomments) <= 0)
{
$flderrMsg .= "* Please enter your feedback/message.
";
}
if($fldcode != true)
{
$flderrMsg .= "* Sorry, the code you entered was invalid. Please try again.
";
}
if(strlen($flderrMsg) <= 0)
{
$mailstr = "You have received Contact enquiry from ICUSA.net
Name : $flduser
Phone : $flphone
Email :$fldemailaddress
Need :$flstate
Message/Feedback - $fldcomments
";
$date = date("d-M-Y");
$emailSub = "ICUSA: $flstate from $flduser [$date]";
// Send mail
SendAutoMail_PHP($toMailId,$fldemailaddress,$emailSub,$mailstr);
SendAutoMail_PHP($toMailCCId,$fldemailaddress,$emailSub,$mailstr);
$flag=1;
}
}
?>
Websites play a very important part of today's marketing strategy. Depending on client needs, the website can have a form a simple site with a basic information about the company, large e-commerce website or other database driven sites connected to an internal system of the company.
FREE 10 minutes consultation