- siparis.php sayfasındaki 10. satıra telefon numaranızı ekleyip kullanabilirsiniz. Basit bir kodlamadır.
İstek gelirse ürün ekleme vs. telefon numarası düzenleme gibi işlemleri yapabileceğiniz bir yönetim panel ekleyebilirim.
index.php
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<link href="style.css" rel="stylesheet" >
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container contact-form">
<div class="contact-image">
<img src="https://image.ibb.co/kUagtU/rocket_contact.png" alt="Peksen"/>
</div>
<form method="post" action="siparis.php">
<h3>Sipariş Formu</h3>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<input type="text" name="urun_adi" class="form-control" placeholder="Almak İstediğiniz Ürün" value="" />
</div>
<div class="form-group">
<input type="text" name="email" class="form-control" placeholder="Email Adresiniz" value="" />
</div>
<div class="form-group">
<input type="text" name="phone" class="form-control" placeholder="Telefon Numaranız" value="" />
</div>
<div class="form-group">
<input type="submit" name="btnSubmit" class="btnContact" value="Sipariş Ver" />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<textarea name="notu" class="form-control" placeholder="Notunuz" style="width: 100%; height: 150px;"></textarea>
</div>
</div>
</div>
</form>
</div>siparis.php<?
$urun_adi = $_POST["urun_adi"];
$email = $_POST["email"];
$phone = $_POST["phone"];
$notu = $_POST["notu"];
$rand = rand(1,99999)
?>
<?
header('Location: https://wa.me/telefonnumaraniz/?text=Merhaba sizden $urun_adi hizmetinizi satın almak istiyorum. Emailim : $email - Telefonum :$phone - Açıklamam: $notu - Banka Açıklamaya Yazılacak No: $rand');style.cssbody{
background: -webkit-linear-gradient(left, #99c7ff, #79ffbf);
}
.contact-form{
background: #fff;
margin-top: 10%;
margin-bottom: 5%;
width: 70%;
}
.contact-form .form-control{
border-radius:1rem;
}
.contact-image{
text-align: center;
}
.contact-image img{
border-radius: 6rem;
width: 11%;
margin-top: -3%;
transform: rotate(29deg);
}
.contact-form form{
padding: 14%;
}
.contact-form form .row{
margin-bottom: -7%;
}
.contact-form h3{
margin-bottom: 8%;
margin-top: -10%;
text-align: center;
color: #0062cc;
}
.contact-form .btnContact {
width: 50%;
border: none;
border-radius: 1rem;
padding: 1.5%;
background: #dc3545;
font-weight: 600;
color: #fff;
cursor: pointer;
}
.btnContactSubmit
{
width: 50%;
border-radius: 1rem;
padding: 1.5%;
color: #fff;
background-color: #0062cc;
border: none;
cursor: pointer;
}