Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/02/2008, 16:20
Avatar de hgp147
hgp147
 
Fecha de Ingreso: diciembre-2006
Ubicación: Buenos Aires, Argentina
Mensajes: 980
Antigüedad: 17 años, 2 meses
Puntos: 36
Re: Ayuda con formulario con radio buttons

Hola proba el código de abajo.

Código HTML:
<html>
<head>
<script>

function checkRaddio(id){
      var x = 0;
      var value = null;
      while(x<id.length){
         if(id[x].checked)value = id[x].value;
         x++;
      }
      return value == null ? "No hay seleccion" : value;
   }


function url(){

document.forms.form2.action = checkRaddio(document.forms.form2);

}
 
</script>
</head>
<body>
<form name="form2" id="form2" onsubmit="url();" action="" method="posT">
<input type="radio" id="radio" name="radio" value='pagina.php'>
<input type="radio" id="radio" name="radio" value='otrapagina.php'>
<input type="submit" value="Siguiente">
</form>

</body>

</html>