Hola amigos, tengo esto y lo que quiero hacer es despues tomar de este formulario lo que el usuario seleccione
Código:
<form method="GET" action="pagina.asp">
<table border="0" width="36%" align="center">
<tr>
<td width="36%" class="text" align="center">Seleccióna la dimención de la imagen</td>
</tr>
<tr>
<td width="36%" align="center" class="text">
<table border="0">
<tr>
<td width="9%" align="center" class="text"><input type="radio" name="tamanoimg" value="100"> 100 x 70</td>
<td width="9%" align="center" class="text"><input type="radio" name="tamanoimg" value="150" checked> 150 x 105</td>
<td width="9%" align="center" class="text"><input type="radio" name="tamanoimg" value="200"> 200 x 140</td>
<td width="9%" align="center" class="text"><input type="submit" value="Ver" name="B1" style="background-color: #333333; color: #CCCCCC; font-weight: bold; font-size: 10 px; border-style: solid; border-color: #CCCCCC"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
y de la resolución que elija el uruario traducirlo en
Código:
<a href="javascript:displayWindow('img.asp?id=<% = RS("ID") %>',<% = RS("Ancho") %>,<% = RS("Alto") %>)"><img src="<% = Img %>/<% = RS("Imagen") %>.<% = RS("Formato") %>" height="alto" width="ancho" border="0" alt="Pulsa para ampliar"></a>
pero la idea es que no tenga que elegir el alto y el largo por separados, lo que quiero es que con elegir las dimenciones escritas en un check box 100 x 70 traducirlas en height="
alto" width="
ancho"
yo tengo esta idea pero no se si se puede hacer:
Código:
...
..
.
<%
img=request.querystring("tamanoimg")
do while not rs.eof and contador <= cint(tamanopagina)
rs.movenext
if img=100 then
response.write "<a href=""javascript:displayWindow('img.asp?id=" & RS("ID") & "'," & RS("Ancho") & "," & RS("Alto") & ")""><img src=""" & Img & "/" & RS("Imagen") & "." & RS("Formato") & """ height=""100"" width=""70"" border=""0"" alt=""Pulsa para ampliar""></a>"
else if img=150 then
response.write "<a href=""javascript:displayWindow('img.asp?id=" & RS("ID") & "'," & RS("Ancho") & "," & RS("Alto") & ")""><img src=""" & Img & "/" & RS("Imagen") & "." & RS("Formato") & """ height=""150"" width=""105"" border=""0"" alt=""Pulsa para ampliar""></a>"
else if img=200 then
response.write "<a href=""javascript:displayWindow('img.asp?id=" & RS("ID") & "'," & RS("Ancho") & "," & RS("Alto") & ")""><img src=""" & Img & "/" & RS("Imagen") & "." & RS("Formato") & """ height=""200"" width=""140"" border=""0"" alt=""Pulsa para ampliar""></a>"
end if
contador=contador+1
loop
%>
.
..
...
pero me dice que hago un loop sin un do y no se porque