Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/03/2011, 14:05
Avatar de Naahuel
Naahuel
 
Fecha de Ingreso: marzo-2011
Ubicación: localhost
Mensajes: 796
Antigüedad: 13 años, 10 meses
Puntos: 192
Respuesta: Ayuda con valores a url

A modo de disculpas, te ayudo con tu problema:
Código:
<table class="a" align="center" border="1" bordercolor="#FFFFFF" cellpadding="0" cellspacing="0" width="700">
<tr><td colspan="6">
<img src="http://www.forosdelweb.com/IMAGENES/tabla_registro.jpg" width="700" border="0" />
</td></tr>
<tr><td width="365">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Elige el Plan:
</td><td align="center" width="60">
<script LANGUAGE="JavaScript">
	function Entrar(){
		var planes = document.forms['planes'].elements['plan'];
		for(var i = 0; i < planes.length; i++) {
			if(planes[i].checked) {
					var plan = planes[i].value;
					break;
			}
		}
		
		alert(plan);
		window.location="SOLICITUD"+"/"+plan+".html"
	}
</script>

<form target="_self" id="planes">
<input name="plan" type="radio" value="sbpubicacion_normal" />
&nbsp;
<input name="plan" type="radio" value="sbpubicacion_plus" />
</td><td align="center" width="63">
<input name="plan" type="radio" value="sbbasico_normal" />
&nbsp;
<input name="plan" type="radio" value="sbbasico_plus" />
</td><td align="center" width="63">
<input name="plan" type="radio" value="sbamateur_normal" />
&nbsp;
<input name="plan" type="radio" value="sbamateur_plus" />
</td><td align="center" width="63">
<input name="plan" type="radio" value="sbbusiness_normal" />
&nbsp;
<input name="plan" type="radio" value="sbbusiness_plus" />
</td><td align="center">
<input name="plan" type="radio" value="sbpremium_normal" />
&nbsp;
<input name="plan" type="radio" value="sbpremium_plus" />&nbsp;&nbsp;&nbsp;
<tr><td align="right" colspan="6">
<input type="button" value="Entrar !" onClick="Entrar()" name="button">
</form>
</td></tr>
</td></tr>
</table>
Es un script rápido, no es gran cosa, pero funciona. ¡Notá que cambié el ID del form y el evento onClick del botón! Un saludo.