Re: [PHP] Passing the value of a variable from PHP to JavaScript.

2004-02-27 Thread Prabu Subroto
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.

2004-02-27 Thread Gareth Williams
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