Form:
<form action="admin/islem.php" method="post" >
<input type="hidden" name="api_key" value="0ebd9b96e41c43beb5430d32750166d2">
<div class="wizard-navigation">
<ul>
<li><a href="#about" data-toggle="tab">Hakkınızda</a></li>
<li><a href="#account" data-toggle="tab">Destek Türü</a></li>
<li><a href="#address" data-toggle="tab">Destek Detayı</a></li>
</ul>
</div>
<div class="tab-content">
<div class="tab-pane" id="about">
<div class="row">
<div class="col-sm-12">
<div class="input-group">
<div class="form-group label-floating">
<label class="control-label">Adınız Soyadınız <small></small></label>
<input name="problem_fullname" type="text" class="form-control">
</div>
</div>
<div class="input-group">
<div class="form-group label-floating">
<label class="control-label">Telefon Numaranız<small></small></label>
<input name="problem_phone" type="text" class="form-control">
</div>
</div>
<div class="input-group">
<div class="form-group label-floating">
<label class="control-label">E-posta <small></small></label>
<input name="problem_email" type="email" class="form-control" >
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="account">
<h4 class="info-text"> Ne tür bir desteğe ihtiyacınız var? </h4>
<div class="row">
<div class="col-sm-4">
<div class="choice" data-toggle="wizard-checkbox">
<input type="checkbox" name="problem_type" value="Diğer">
<div class="icon">
<i class="fas fa-pencil-alt"></i>
</div>
<h6>Diğer</h6>
</div>
</div>
<div class="col-sm-4">
<div class="choice" data-toggle="wizard-checkbox">
<input type="checkbox" name="problem_type" value="Yazılımsal Destek">
<div class="icon">
<i class="fas fa-terminal"></i>
</div>
<h6>Yazılımsal Destek</h6>
</div>
</div>
<div class="col-sm-4">
<div class="choice" data-toggle="wizard-checkbox">
<input type="checkbox" name="problem_type" value="Donanımsal Destek">
<div class="icon">
<i class="fas fa-laptop"></i>
</div>
<h6>Donanımsal Destek</h6>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="address">
<div class="row">
<div class="col-sm-12">
<h4 class="info-text"> Lütfen yaşadığınız sorunu tanımlayınız </h4>
</div>
<div class="col-sm-12 ">
<div class="form-group label-floating">
<label class="control-label">Problem Detaylarınız...</label>
<input type="text" class="form-control" name="problem_description">
</div>
</div>
<div class="col-sm-6 ">
<div class="form-group label-floating">
<label class="control-label">Departman</label>
<input type="text" class="form-control" name="problem_department">
</div>
</div>
<div class="col-sm-6">
<div class="form-group label-floating">
<label class="control-label">Talep Gönderen Kurum</label>
<select name="problem_institution" class="form-control">
<option disabled="" value="..." selected="">Seçiniz</option>
<option value="Park Bosphorus Otel"> Park Bosphorus Otel </option>
<option value="Taksim Otel"> Taksim Otel </option>s
<option value="Mineral & Madencilik"> Mineral & Madencilik </option>
<option value="Hukuk"> Hukuk </option>
<option value="Hukuk"> İnşaat </option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="wizard-footer">
<div class="pull-right">
<input type='button' class='btn btn-next btn-fill btn-primary btn-wd m-0' name='next' value='İleri' />
<button type="submit" class='btn btn-finish btn-fill btn-success btn-wd m-0' name="problemsave" >Talep Oluştur</button>
</div>
<div class="pull-left">
<input type='button' class='btn btn-previous btn-fill btn-default btn-wd m-0' name='previous' value='Geri' />
</div>
<div class="clearfix"></div>
</div>
</form>islem.php dosya kısmımif (isset($_POST['problemsave'])) {
if( isset($_POST['api_key']) ){
$api_key = trim($_POST['api_key']);
}else{
$api_key = '';
}
$kaydet = $db->prepare('SELECT users_id AS id FROM users WHERE api_key = ? LIMIT 1');
$kaydet->execute([$api_key]);
$sonuc = $kaydet->fetchAll(PDO::FETCH_ASSOC);
$id = null;
if( isset($sonuc[0]) ){
$id = $sonuc[0]['id'];
}else{
$id = null;
}
if($id === null){
Header("Location:index.php?durum=no");
}
$kaydet=$db->prepare("INSERT into problem set
users_id=:users_id,
problem_id=:problem_id,
problem_fullname=:problem_fullname,
problem_phone=:problem_phone,
problem_email=:problem_email,
problem_type=:problem_type,
problem_description=:problem_description,
problem_department=:problem_department,
problem_institution=:problem_institution,
problem_note=:problem_note,
problem_time = NOW(),
problem_status=1
");
$problem_id = $_POST['problem_id'];
$problem_fullname = $_POST['problem_fullname'];
$problem_phone = $_POST['problem_phone'];
$problem_email = $_POST['problem_email'];
$problem_type = $_POST['problem_type'];
$problem_description = $_POST['problem_description'];
$problem_department = $_POST['problem_department'];
$problem_institution = $_POST['problem_institution'];
$problem_note = $_POST['problem_note'];
$problem_time = $_POST['problem_time'];
if( empty($problem_fullname) ) { $problem_fullname = ''; }
if( empty($problem_phone) ) { $problem_phone = ''; }
if( empty($problem_email) ) { $problem_email = ''; }
if( empty($problem_type) ) { $problem_type = ''; }
if( empty($problem_description) ) { $problem_description = ''; }
if( empty($problem_department) ) { $problem_department = ''; }
if( empty($problem_institution) ) { $problem_institution = ''; }
$insert=$kaydet->execute(array(
'users_id' => $id,
'problem_id' => $problem_id,
'problem_fullname' => $problem_fullname,
'problem_phone' => $problem_phone,
'problem_email' => $problem_email,
'problem_type' => $problem_type,
'problem_description' => $problem_description,
'problem_department' => $problem_department,
'problem_institution' => $problem_institution,
'problem_time' => $$problem_time
));
if ($insert) {
//echo "kayıt başarılı";
Header("Location:tesekkurler.php?durum=ok");
exit;
} else {
//echo "kayıt başarısız";
Header("Location:index.php?durum=no");
exit;
}
}Bu neden yazdırmaz lütfen yardımcı olun.arkadaşlar sorunum halen devam etmekde yardımcı olur musunuz