<?
$project_name = $_POST['project_name'];
$client_name = $_POST['client_name'];
$client_tel = $_POST['client_tel'];
$client_email = $_POST['client_email'];
$description = $_POST['description'];
$logos = $_POST['logos'];
$deadline = $_POST['deadline'];
$bnl = $_POST['bnl'];
$manager = $_POST['manager'];
$filiming = $_POST['filiming'];
$editor = $_POST['editor'];
$dropboxfolder = $_POST['dropboxfolder'];
$music = $_POST['music'];
$songs = $_POST['songs'];
$client_time = $_POST['client_time'];
$outcome = $_POST['outcome'];
$notes = $_POST['notes'];
error_reporting(E_ALL);
ini_set('display_errors', ‘1’);
//header('Refresh: 20');
$username="*";
$password="*";
$database="*";
$localhost="*";
mysql_connect($localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
string mysql_real_escape_string ( string $unescaped_string [, resource $link_identifier = NULL ] );
$query_insert = "INSERT INTO projects VALUES ('$project_name','$client_name','$client_tel','$client_email','$description','$logos','$deadline','$bnl','$manager','$filiming','$dropboxfolder','$editor','$music','$songs','$client_time','$outcome','$notes')";
mysql_query($query_insert);
$to = "[email protected]";
$subject = "$project_name";
$message ="$manager has filled in the Project form.\n
Project Name: $project_name\n
Client Name: $client_name\n
Client telephone: $client_tel\n
Client Email: $client_email\n
Description: $description\n
Logos: $logos\n
Client deadline: $deadline\n
BNL deadline: $bnl\n
Project Manager: $manager\n
Filming: $filiming\n
Dropbox Folder: $dropboxfolder\n
Music: $music\n
N0. Songs: $songs\n
Logos: $client_time\n
Expected Outcome: $outcome\n
Notes: $notes\n
";
$from = "[email protected]";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
mysql_close();
header( 'Location: index.php' ) ;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>