<?
####################################################################################
$to = "office@florunion.ro";

if(($_POST['nume']!="")&&($_POST['adresa']!="")&&($_POST['telefon']!="")&&($_POST['studii']!="")&&($_POST['exp']!="")&&($_POST['abilitati']!="")&&($_POST['scrisoare']!="")){

	####### dont edit the code after this line! ###################################
	$subject = 'O noua cerere de angajare';
	$from = $_POST['email'];
	$content = "<B>NUME SI PRENUME:</B>&nbsp;&nbsp;" . $_POST['nume'] ."<br><B>ADRESA:</B>&nbsp;&nbsp;". $_POST['adresa'] ."<br><B>TELEFON :</B>&nbsp;&nbsp;". $_POST['telefon'] ."<br><B>STUDII :</B>&nbsp;&nbsp;". $_POST['studii'] ."<br><B>EXPERIENTA :</B>&nbsp;&nbsp;". $_POST['exp'] ."<br><B>EXPERIENTA :</B>&nbsp;&nbsp;". $_POST['expe'] ."<br><B>EXPERIENTA :</B>&nbsp;&nbsp;". $_POST['exper'] ."<br><B>EXPERIENTA :</B>&nbsp;&nbsp;". $_POST['experi'] ."<br><B>EXPERIENTA :</B>&nbsp;&nbsp;". $_POST['experie'] ."<br><B>ABILITATI:</B>&nbsp;&nbsp;". $_POST['abilitati'] ."<br><B>SCRISOARE DE INTENTIE:</B>&nbsp;&nbsp;". $_POST['scrisoare'];

	mail($to , $subject, $content, "From: $from \n" ."MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1");
	echo "<script>alert('C.V.- ul a fost trimis. Urmeaza sa va contactam noi in cel mai scurt timp. Va multumim !')</script>";
}
else{
	echo "<script>alert('C.V.- ul NU a fost trimis. ! Mesajul nu este complet ! Toate campurile sunt obligatorii')</script>";
}
echo "<script>location.replace('index.php?pagina=cariera')</script>";
?>