Código HTML:
function redi()
{
PopUpgen = window.open("", "variables"," top = 50 left = 50 height = 500, width = 800");
document.form1.action="pasarvariables.php";
document.form1.target = "variables";
document.form1.submit();
}
<input name="acurso2" type="button" id="acurso2" onclick="javascript:redi()" value="pasar variables"/>
Código HTML:
document.getElementById('textFInicio').value = "21/09/07"; document.getElementById('textFFin').value = "19/10/07"; <form action='$PHP_SELF?action=news' method=post enctype='multipart/form-data' name="form1" id="form1"> <input name="textFInicio" id="textFInicio" type=text class="formulario" size=50> <input name="textFFin" id="textFFin" type=text class="formulario" size=50> </form>