Foros del Web » Programando para Internet » Javascript »

pasar parámetros con el get

Estas en el tema de pasar parámetros con el get en el foro de Javascript en Foros del Web. Hola, he hecho este código: formulario1.html Código: <html> <FORM action="javascript2.html" method="GET"> nombre<INPUT type="text" id="nombre"><BR> apellido1<INPUT type="text" id="apellido1"><BR> apellido2<INPUT type="text" id="apellido2"><BR> nota1<INPUT type="text" id="nota1"><BR> nota2<INPUT type="text" ...
  #1 (permalink)  
Antiguo 14/04/2010, 06:21
Avatar de PacoRuiz  
Fecha de Ingreso: abril-2009
Mensajes: 254
Antigüedad: 15 años
Puntos: 3
pasar parámetros con el get

Hola, he hecho este código:

formulario1.html
Código:
<html>
<FORM action="javascript2.html" method="GET">

    
              nombre<INPUT type="text" id="nombre"><BR>
    
              apellido1<INPUT type="text" id="apellido1"><BR>

              apellido2<INPUT type="text" id="apellido2"><BR>
    
              nota1<INPUT type="text" id="nota1"><BR>

              nota2<INPUT type="text" id="nota2"><BR>

              nota3<INPUT type="text" id="nota3"><BR>
<INPUT type="submit" value="Enviar">
 
</FORM> 
</html>
javascript2.html

Código:
<html> 
	<head> 
		
	</head> 

	<body> 
		<script language="javascript">	
		
		document.write(location href);
		</script>
	</body> 
</html>
Cuando abre javascript2.html, en la barra de direcciones no aparecen los datos del formulario, sino solamente la ruta del fichero
  #2 (permalink)  
Antiguo 14/04/2010, 06:50
Avatar de Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 17 años, 4 meses
Puntos: 126
Respuesta: pasar parámetros con el get

Hola

Dale un nombre a los campos

Cita:
nombre<INPUT type="text" name="nom" id="nombre"><BR>
Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />

Etiquetas: pasar
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:53.