Hi
I need to concatenate a js variable (js function) in a php line. I would like to pass the complete link via xml.
Here's the code
Function selectCodigo(){
xmlview = '<?php echo '/views/purchases/viewQuer
ies/pendin
g_to_pay.x
ml.php'; ?>';
code = document.getElementById('f
iscalCo').
value;
code = xmlview+'?filtro='+code;
alert(code);
code = '<?php encode_path('\'code\'') ?>'; // here's the problem, I need to introduce the 'code' variable in my php function (encode_path) in order to get the full link.
return code;
}
after that I call the js function in my php script
this is my php line where the name js
$SelectBoxFi='<select id="fiscalCo" class="SelectBox" name="fiscalCo" size="1" class="" ONCHANGE="refreshTree('.'m
ygrid12'.'
,\\selectC
odigo()'.'
\\);">';
I hope you can help me
Start Free Trial