Hola a todos,
tengo la siguiente duda.
¿Cómo se puede recoger la url que en un determinado momento está escrita en la barra de direcciones del explorador, para meterla en una variable de sesión?
Gracias
Óscar
| ||||
Código:
utiliza esto para que veas para que sirve cada uno:response.Write(request.ServerVariables("SERVER_NAME"))
Código:
For each item in request.servervariables response.write "<b>" & item & "</b>: " response.write request.servervariables(item) & "<br>" Next
__________________ Saruman One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them. |
| ||||
saruman, eso sólo te da el nombre de servidor. la cosa sería algo así como
Código:
sólo te quedaría comprobar si hay o no hay querystring para añadirle, o no, al final la última parte.response.Write("http://"&request.ServerVariables("SERVER_NAME")&request.ServerVariables("SCRIPT_NAME")&"?"&request.ServerVariables("QUERY_STRING")) yo no la conozco, pero como haya una variable de servidor que te dé ésto exactamente, me muero de vergüenza, jejejej. ![]() |
| ||||
si, yo lo sabía.. sinó que lo puse así tásito sobrentendido que parentesys lo hiva a entender y a modificar... gracias trasgukabi ![]()
__________________ Saruman One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them. |