
19/07/2002, 13:45
|
| | Fecha de Ingreso: julio-2002
Mensajes: 219
Antigüedad: 22 años, 10 meses Puntos: 0 | |
Re: submit Si lo quieres hacer con ASP, debes lo puedes hacer así:
<FORM id="preguntar" name="preguntar" action="transicion.asp" method="post">
<!-- OPCION1-->
<INPUT type="submit" value="OPCION1" id=preguntar name=preguntar>
<!-- OPCION2 -->
<INPUT type="submit" value="OPCION2" id=preguntar name=preguntar>
<!-- OPCION3 -->
<INPUT type="submit" value="OPCION3" id=preguntar name=preguntar>
</FORM>
Y en el archivo "transicion.asp" colocas
<%
Dim res
res = Request("preguntar")
Select Case res
case "OPCION1":
'HACES LO QUE QUIERES HACER
case "OPCION2":
'HACER LO QUE QUIERES HACER
case "OPCION3":
'HACER LO QUE QUIERES HACER
end select
%>
Si lo quieres en javaScript deberías buscarlo en ese foro.
Pero te adelanto que debes usar el evento OnClick del Option Box, en cada opción, y colocar la función de javaScript como se debe.
Suerte. |