if(isset($_POST["profession"]) && isset($_POST["salary"]) && isset($_POST["Work_schedule"]) && isset($_POST["education"]) && isset($_POST["comment"]) && isset($_POST["filename"])){
echo "Вакансия сохранена<br>";
$profession = $_POST["profession"];
echo $profession . "<br>";
$salary = $_POST["salary"];
echo $salary . "<br>";
$Work_schedule = $_POST["Work_schedule"];
echo $Work_schedule . "<br>";
$education = $_POST["education"];
echo $education . "<br>";
$comment = $_POST["comment"];
echo $comment . "<br>";
$fd = fopen($_POST["filename"],'w') or die("Невозможно открыть файл");
fputs($fd, $profession);
fputs($fd, $salary);
fputs($fd, $Work_schedule);
fputs($fd, $education);
fputs($fd, $comment);
fclose($fd);