New
#1
any php, js , PEAR expects here that can help me?
ok im makin a gmap website for a uni subject
its in PEAR templates
problem i can seem to access the php variable in my js script
in test.php
i got
$address= $_POST['address']; which gets it from input in prev page
connected to dat php page is a test.tpl file where all html and js is there
i tried this and all sort of methods
var myVar = "<?php echo $address; ?>";
alert(myVar);
but all it shows it <?php echo $address; ?> in the alert box
i need that address value so i can pinpoint it on a gmap by calling a function like dat
showAddress(<?php echo $address; ?>);return false;
any ideas how to resolve it?
thx :)
Last edited by friedrice; 21 Apr 2010 at 07:18.