arkadaşlar

şimdi js.php dosyamda işlenen toplam fiyatım
--- echo "document.getElementById('shopping_cart_totalprice ').innerHTML = txt_totalPrice + totalPrice.toFixed(2)"; ---

kodu ile hesaplanıp html olarak index.php sayfasına basılıyor.

yanlız ben bu veriyi session ile tutmak istiyorum.

yani

js.php
function hesapla {
.........
<?
echo "document.getElementById('toplam_fiyat_div').inner HTML = txt_totalPrice + totalPrice.toFixed(2)"

$c= "txt_totalPrice + totalPrice.toFixed(2)";
?>

}

----------------

document.getElementById('toplam_fiyat_div').innerH TML bu kod sayesinde index.php de toplam_fiyat_div divinin icerisine fiyatı yazdırıyorum fakat ben bunu session olarak tutmak istiyorum.

onun için bir $c değişkeni tanımladım fakat bu $c değişkeni js.php sayfasında ve ben bu sayfayı include edemediğim için (içinde büssürü fonksiyon var) bi şekilde yollamam lazım action falan gibi..

js.php sayfasına ne yazıp $c değişkenini index.php dosyasına yollayabilirim....

yardımlarınız için şimdiden teşekkürler