#error_reporting(E_ALL);
#ini_set('display_errors','On');
//session_start();
require_once "config.php";
require_once "functions.php";
if($_POST['join_submit'])
{
$name=$_POST['txtname'];
$emailid=$_POST['emailid'];
$telephone=$_POST['txttelephone'];
$country=$_POST['txtCountry'];
$message=$_POST['txtmsg'];
$ipaddress = $_SERVER['REMOTE_ADDR'];
session_start();
if(($_SESSION['security_code'] == $_POST['txtWordVerification']) && (!empty($_SESSION['security_code'])) ) {
$insertmember = "INSERT INTO `ynfx_worldfiber_order` ( `sr_no` , `name` , `emailid` , `phoneno` , `country` , `message` , `dtstamp` , `ipaddress`) VALUES (NULL , '$name', '$emailid', '$telephone', '$country', '$message', NOW() , '$ipaddress');";
$insertmemberexe = mysql_db_query(DB_NAME, $insertmember);
$message ='
|
|
|
|
|
|
Name |
: |
'.$name.' |
|
|
Emai-id |
: |
'.$emailid.' |
|
|
Telephone |
: |
'.$telephone.' |
|
|
Country |
: |
'.$country.' |
|
|
Message |
: |
'.$message.' |
|
|
';
//die($message);
$to = "sales@ynfx.com";
//$to = "divyesh@centerac.com";
$subject = "YnFx World Fibre Report customized Order";
$from = "YnFx Team";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $from" . "\r\n";
// $headers .= 'Cc: satish@centerac.com' . "\r\n";
mail($to,$subject,$message,$headers);
//die($message);
header ('Location: ../preferredsupplier/success_sp.php');
}
else
{
?>
}
}
?>
YnFx Preferred Supplier Program for companies, traders, buyers and sellers.
include "../preferredsupplier/top_banner.php";?> |
|
|
|
include "../preferredsupplier/rhs_banner.php";?> |
|
|
include "../preferredsupplier/bottom_banner.php";?> |
|