
16/01/2002, 14:30
|
| | Fecha de Ingreso: julio-2001
Mensajes: 278
Antigüedad: 23 años, 9 meses Puntos: 0 | |
Re: Pasar una variable de javascript a asp Por query String
<html>
<head>
<script>
<!--
variable = 10;
accion = "forma.asp?variable="+variable;
function enviar(frm)
{
frm.action = accion;
frm.Submit();
}
-->
</script>
<head><body>
<form name="forma" method="Post">
....
<input type="button" value="Submit" onClick="enviar(document.forma)">
</form>
</body>
</html>
y en este caso el código del archivo forma.asp
debería ser algo como
<%
Variable = Request.QueryString("Variable")
...
%>
<a href="http://www.unitecos.net">
<img src="http://www.soportexpresso.com/pass/correo/agarciaa.jpg" border=0>
</a> |