Я создал форму в файле "basvuru. php". Я посылаю smtp почту с "gonder. php". Как я могу повысить безопасность перед отправкой формы в файл "basvuru. php"? Есть "форма действия" gonder. php.
Этот файл basvuru. php.
<!DOCTYPE html>
<html lang="tr"><head>
<title>İş Başvuru Formu</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
</head>
<body>
<div class="container text-center">
<div id="nav1" class="alert mt-2 d-md-none" role="alert" style="background-color:lightcyan;">
<a href="https://saffanglobal.com"><img class="p-2" src="saffan-logo.png" style="height:40px;"></a> <a href="https://saffanglobal.com" class="btn btn-light" role="button" aria-pressed="true"><img src="anasayfa.svg" height="20" width="20"></a> <a href="mailto:ik@saffanglobal.com?Subject=İş%20Başvurusu" class="btn btn-light" role="button" aria-pressed="true"><img src="mail.svg" height="20" width="20"></a>
</div>
<div id="nav1" class="alert mt-2 d-none d-md-block" role="alert" style="background:rgba(99,99,99,0.24);">
<a href="https://saffanglobal.com"><img class="p-2" src="saffan-logo.png"></a> <a href="https://saffanglobal.com" class="btn btn-light" role="button" aria-pressed="true"><img src="anasayfa.svg" height="20" width="20"></a> <a href="mailto:ik@saffanglobal.com?Subject=İş%20Başvurusu" class="btn btn-light" role="button" aria-pressed="true"><img src="mail.svg" height="20" width="20"></a>
</div>
</div>
<div class="container">
<h5 class="text-center">Hızlı geri dönüş için tüm bilgileri doldurunuz.</h5>
<form role="form" action="gonder.php" method="post">
<div class="form-row">
<div class="form-group col">
<div class="text-center p-1" style="background:#FF8486; color:#ffffff; border-radius: 3px;">KİŞİSEL BİLGİLER</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label>İsim Soyisim</label>
<input required="required" type="isimsoyisim" name="isimsoyisim" class="form-control" placeholder="İsminiz ve soyisminizi yazınız">
</div>
<div class="form-group col-md-4">
<label>Email</label>
<input required="required" type="email" name="email" class="form-control" placeholder="geçerli email adresinizi yazınız">
</div>
<div class="form-group col-md-4">
<label>Telefon</label>
<input required="required" type="telefon" name="telefon" class="form-control" placeholder="mobil numaranız">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-3">
<label>Boyunuz</label>
<input type="text" name="tamucret" class="form-control" placeholder="XXXX XXXX">
</div>
<div class="form-group col-md-3">
<label>Kilonuz</label>
<input type="text" name="tamisebaslama" class="form-control" placeholder="XXXX XXXX">
</div>
<div class="form-group col-sm">
<label>Bedensel Engel</label>
<input type="text" name="tamgecim" class="form-control" placeholder="yok veya varsa açıklama">
</div>
</div>
<div class="form-row">
<div class="form-group col-sm">
<label>İl veya Ülke dışına seyahat engeliniz var mı?</label>
<input type="text" name="tamucret" class="form-control" placeholder="XXXX XXXX">
</div>
</div>
<div class="mt-2 mb-2"><button name="submit" type="submit" class="mb-3 btn btn-danger btn-lg btn-block">Gönder</button></div>
</form>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</body>
</html>
Этот файл является gonder. php. код немного длинный. Я не мог разместить это здесь.
https://gist.github.com/ersingo/0149741dc61f156fb978f53c11138ed0