Hola a todos, tengo un problema muy gordo, escribi una function en
index.php y cuando lo llamo la action se ejecuta en
change_language.php y aqui procesa un action y luego me redirecciona a index.php, el problema redica q el explorer me modifica el código javascript generandome errores de sintaxis y no se porque? alguien me puede ayudar porfa?
function original Código PHP:
function idioma(str) {
document.write('<body');
document.write('<form name=tempo method=post action=http://henrry/master/includes/lang/change_language.php?idioma=',str,'&page=<? echo $PHP_SELF;?>>');
document.write('</form>');
document.tempo.submit();
return;
}
function modificada por el explorer con errores Código PHP:
function idioma(str) {
document.write('<body>');
document.write('<form name="tempo" method="post" action="http://henrry/master/includes/lang/change_language.php?idioma="',str,'&page=/master/index.php>');
document.write('</form>');
document.tempo.submit();
return;
}
el error se genera en el parametro idioma, el explorer agrega las "comillas
Gracias