php
<script> function capturar() { var seleccion=document.getElementById("producto").options.selectedIndex; var opcion=document.getElementById("producto").options[seleccion].text <?php $valor= "<script> document.write(opcion) </script>"; $objF=$this->f; $producto=$objF->getProductoPorId($valor); ?> } </script>
me genera error en la parte de $valor= "<script> document.write(opcion) </script>";