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

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

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