bunun yolu ajax.
javascript clientside çalışır, server ile iletişimi ise sadece ajax sağlar.
pg13 arkadaş doğru söylüyor bunu ajax ile yapabilirsin, bir yol da jquery ile formu post ederek yapabilirsin
bu tıklanacak id
<a href="#detay" onclick="getId('<?php echo $row["uye_id"]; ?>')" ></a>bu javascipt kodu
function getId(id)
{
alert(id);
$.ajax({
url:"http://localhost/ajax.php",
types:"GET",
data:{"id":id},
success: function(cevap){
alert(cevap);
}
});
}bu da ajax.php
<?
$deger = $_GET["id"];
echo $deger;
?>
bu şekilde ekrana alert içinde uye_id sini yazdırdım orada sıkıntı yok. Ben ajax.php deki $deger değişkenini ajax.php nine değer gönderdiğimiz index.php içinde sorgunun içinde kullanacağım index.php de $deger değerini nasıl aktarabilirim?