no se puede....
no es un imputi tipo "button" es submit:
<input type="submit" value="Votar" name="Bot"> me tira error si le meto el onclick, "enc_ver no esta definido"
Código:
<script language="JavaScript">
function popupencuesta(URL){
window.open(URL,"Resultados","width=500, height=350, scrollbars=no, menubar=no, location=no,
resizable=no")
}
</script>
<?
include("config.php"); //incluimos el fichero config.php donde tenemos la configuración del
script
if(!file_exists($file)) //si el txt no existe...
{
$fp=fopen($file,"w"); //creamos un txt por si no tá creado
fputs($fp,"0\n0\n0\n0"); //le ponemos las respuestas desde 0
fclose($fp); //cerramos el txt
}
?>
<p><b>Cual es el mejor?</p></b>
<form method=POST action="enc_ver.php">
<input type="radio" name="En" value="E1" checked><? echo $c1;?><br>
<input type="radio" name="En" value="E2"><? echo $c2;?><br>
<input type="radio" name="En" value="E3"><? echo $c3;?><br>
<input type="radio" name="En" value="E4"><? echo $c4;?><br>
<input type="submit" value="Votar" name="Bot" onClick="popupencuesta(enc_ver.php)">
</form>
<p>