Merhaba dostlar,
PHP ile sipariş takip uygulaması yapıyorum, herşey tamam ama bir eksik var ve sayfa çalışmıyor. Kafam iyice karıştı. Sizce eksik nerde ?
Bu index.html
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>ÜYE SİPARİŞ</title>
    <style type="text/css">
        #siparis span {display: block; font-size: 20 px Tahoma}
        #siparis input {border: 1px; solid:#fff; padding: 10px}
        #siparis button {display: block; border: 1px; solid:#555; padding:10px width:250px; margin-top: 10px; cursor:pointer}
    </style>
</head>
<body>
    <div id="siparis">
    <form action="gonder.php" method="post">
    <span>Ürünler :</span>
    <input type="radio" name="product" id="1 Adet" value="1 Adet">
    <label for="1 Adet">1 Adet</label>
    <input type="radio" name="product2" id="2 Adet" value="2 Adet">
    <label for="2 Adet">2 Adet Datca Macunu</label>
    <input type="radio" name="product3" id="3 Adet" value="3 Adet">
    <label for="3 Adet">3 Adet</label>
    <span>Adınız :</span>
    <input type="text" name="fullname">
    <span>Telefon Numaranız :</span>
    <input type="text" name="phone">
    <span>Adresiniz :</span>
    <input type="text" name="address">
    <button type="send">Sipariş Ver</button>
    </form>
    </div>
</body>
</html>
Bu da gonder.php
<?php
mysql_select_db("musteriler", mysql_connect("localhost", "root"));
$product    = $_POST["product"];
$fullname    = $_POST["fullname"];
$phone        = $_POST["phone"];
$address    = $_POST["address"];
if (($product=="") or ($fullname=="") or ($phone=="") or ($address=="") )
{
    echo "Lütfen boş alan bırakmayınız !";
}
else
{
    $kayit = mysql_query("insert into siparisler (product, fullname, phone, address) value ('$product', 'fullname', 'phone', 'address')");
    if ($kayit)
    {
        echo "Siparişiniz başarıyla alınmıştır !";
    }
    else
    {
        echo "Sipariş oluşturulurken bir hata oluştu. Lütfen tekrar deneyin !";
    }
}
?>