Я хочу обновить данные с помощью PHP. Когда я нажимаю кнопку, страница обновляется, и обновление не происходит. Как исправить
МОИ КОДЫ:
Имя файла: Contact_settings
<form action="../netting/islem.php" method="post" class="form-horizontal form-label-left">
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12">Gsm Number<span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" name="ayar_tel" value="<?php echo $ayarcek['ayar_tel'] ?>" required="required" class="form-control col-md-7 col-xs-12">
</div>
<div class="form-group">
<div align="right" class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button type="submit" name="iletisim" class="btn btn-success right">Güncelle</button>
</div>
</div>
ИМЯ ФИЛА: islem.php
if(isset($_POST['iletisim'])){
$ayarkaydet = $db->prepare("UPDATE ayar SET
ayar_tel =:ayar_tel,
WHERE ayar_id=3
");
$update = $ayarkaydet->execute
(
array(
':ayar_tel' => $_POST['ayar_tel'],
)
);