Continuando con la sección de JavaScript, ahora pondré un ejemplo de como enviar un formulario sin necesidad de intervención del usuario (ahora el código del servidor será ASP, para no limitarlo a un solo lenguaje).
index.html
<html>
<head>
<title>Prueba</title>
<script language="JavaScript"></script>
</head>
<body>
<form name="frmEnviar" method="post" action="">
<input type="hidden" name="variable1" value="Hola">
<input type="hidden" name="variable2" value="Hello">
</form>
<script language="JavaScript">
redi();
</script>
</body>
</html>
accion.asp
<%=request.Form("variable1" ) & "<br />" &
request.Form("variable2" )%>
One Response
stan
February 18th, 2005 at 10:47 am
1Interesante.
RSS feed for comments on this post · TrackBack URI
Leave a reply