if(!isset($_POST[name]))
{
?>
Используйте форму ниже, чтобы отправить нам свое резюме
}
else
{
echo "CV'niz başarıyıla bize ulaştı.
İlginiz için teşekkür ederiz.";
$name_of_uploaded_file = basename($_FILES['uploaded_file']['name']);
$type_of_uploaded_file = substr($name_of_uploaded_file, strrpos($name_of_uploaded_file, '.') + 1);
$fname = md5(time());
$target_path = "_files/cv/";
move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $target_path.$fname.'.'.$type_of_uploaded_file);
$file_to_save = $fname.'.'.$type_of_uploaded_file;
$q = "INSERT INTO cv (fname, email, cep, filse, field_of) VALUES ('$_POST[name]','$_POST[email]','$_POST[tel]','$file_to_save', '$_POST[pos]')";
$al = mysql_query($q);
// $q = "INSERT INTO newsletter (fname, email,tel, c_date) VALUES ('$_POST[name]','$_POST[email]','$_POST[tel]',NOW())";
// $al = mysql_query($q);
}
?> |
|
|