//session_start();
require_once "config.php";
require_once "functions.php";
require_once "login_top_script.php";
$services = $_GET['services'];
if($_POST['join_submit'])
{
//echo "1".$services;
$name=$_POST['txtname'];
$emailid=$_POST['emailid'];
$telephone=$_POST['txttelephone'];
$Country=$_POST['txtCountry'];
$txtservices=$_POST['txtservices'];
$ipaddress = $_SERVER['REMOTE_ADDR'];
if($txtservices == 1)
{
$services_name = "Polyester Chain Forecast Report";
}
else if($txtservices == 2)
{
$services_name = "Nylon Chain Forecast Report";
}
else if($txtservices == 3)
{
$services_name = "Global Cotton Forecast Report";
}
else if($txtservices == 4)
{
$services_name = "ExportWatch Report";
}
//echo "2".$services_name;
//die();
session_start();
if(($_SESSION['security_code'] == $_POST['txtWordVerification']) && (!empty($_SESSION['security_code'])) ) {
$insertmember = "INSERT INTO `ynfx_forecast_enquiry` ( `sr_no` , `name` , `emailid` , `phoneno` , `country` , `servies` , `dtstamp` , `ipaddress`) VALUES (NULL , '$name', '$emailid', '$telephone', '$Country' , '$services_name', NOW() , '$ipaddress');";
$insertmemberexe = mysql_db_query(DB_NAME, $insertmember);
$message ='
|
|
|
|
|
|
Name |
: |
'.$name.' |
|
|
Emai-id |
: |
'.$emailid.' |
|
|
Telephone |
: |
'.$telephone.' |
|
|
Country |
: |
'.$Country.' |
|
|
Services |
: |
'.$services_name.' |
|
|
';
//die($message);
$to = "sales@ynfx.com";
//$to = "pravin@ezcommindia.com";
$subject = "YnFx $services_name Enquiry";
$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: pravin@ezcommindia.com' . "\r\n";
mail($to,$subject,$message,$headers);
//die($message);
header ('Location: success.php');
}
else
{
?>
}
}
?>
YnFx Preferred Supplier Program for companies, traders, buyers and sellers.
include "top_banner.php";?> |
|
|
|
include "rhs_banner.php";?> |
|
|
include "bottom_banner.php";?> |
|