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
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
2 matches
Mail list logo