Post verisini alamıyorum
Post ettikten sonra değeri yakalayamıyorum
<form method="POST" action="satin-al/<?=$urun['sef']?>">
<div class="product-detail">
<ul class="tab-areas" style="margin-top: 7px;">
<?php
$query = $db->query("SELECT * FROM urun_secenek WHERE urun_id = '{$urun['id']}' ORDER BY id ASC", PDO::FETCH_ASSOC);
if($query->rowCount()){
foreach( $query as $row ){
?>
<h4>
<p style="color:forestgreen;"><?php echo $row['baslik']; ?></p>
</h4>
<?php
$query1 = $db->query("SELECT * FROM urun_secenek_alt WHERE urun_secenek_id = '{$row['id']}' ORDER BY id ASC", PDO::FETCH_ASSOC);
if($query1->rowCount()){
foreach( $query1 as $row1 ){ ?>
<input type="hidden" name="secenek" value="" id="secenek">
<li class="ozel" data-secenek="<?php echo $row1['baslik'] ?>">
<h3><?php echo $row1['stok'] ?> Adet <?php echo $row1['baslik'] ?>
</h3>
<span class="price"><?php echo $row1['fiyat'] ?> TL</span>
</li>
<?php } } } }?>
</ul>
<ul class="order-areas">
<li class="sepete-ekle">
<input type="image" src="assets/media/cache/73/2c/732c93531071f2bff1b5e5383834ddf1.jpg" value="submit" width="500">
</li>
</ul>
</div>
</form>
<script type="text/javascript">
$(document).ready(function() {
$('.ozel').click(function () {
$('.ozel').removeClass('active');
var degisken = $(this);
var secenek = degisken.addClass('active').attr('data-secenek');
var veri = secenek;
console.log(veri)
$("#secenek").val(secenek);
return false;
});
});
</script>