Re: [PHP] Passing the value of a variable from PHP to JavaScript.
Re: [PHP] Passing the value of a variable from PHP to JavaScript. > Try this: > > > function tes(selCtrl){ > > document.write('JavaScript'); > > window.location.replace('http://192.168.23.1/coba/coba.php? > > vtes='+selCtrl.va
Re: [PHP] Passing the value of a variable from PHP to JavaScript.
Try this: function tes(selCtrl){ document.write('JavaScript'); window.location.replace('http://192.168.23.1/coba/coba.php? vtes='+selCtrl.value); } or this: function tes(){ selCtrl = document.getElementById('vtes'); document.write('JavaScript'); window.location.replace('http://192.168.23.1
[PHP] Passing the value of a variable from PHP to JavaScript.
Dear my friends... I have my code like this : == function tes(){ document.write('JavaScript
'); window.location.replace('http://192.168.23.1/coba/coba.php?vtes=$vtes'); } "; echo "diforward ke javascript"; echo " 1 2 "