[thelist] ASP
Jesus G. Gorriti
Jesus.Gorriti at iconmedialab.es
Tue Aug 14 08:35:23 CDT 2001
Ok.
This is getting to my nerves.
I am trying to make an asp gallery, no
database, just parameter based stuff.
So, I pass two parameters through the url like
this:
http://whatever.com/gallery/gallery.asp?photo=1&total=10
Then I recover them in the ASP and assign them to
two variables:
<%
strTotal=request.querystring("total")
strPhoto=request.querystring("photo")
%>
And then, I try to write a pull down menu, but
it starts (or look like it does start) an
infinite loop:
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<%
n=1
do until (n>strTotal)
if n=photo then
Response.write("<option value='gallery.asp
photo="&n&"&strTotal="&strTotal&"' selected>photo "&n&"</option>")
else
Response.write("<option
value='gallery.asp?photo="&n&"&total="&strTotal&"'>photo "&n&"</option>")
end if
n=n+1
loop
%>
</select>
Anyone has a clue why it doesn't work?
Thanks.
Jesús G. Gorriti
Art Director
Email jesus.gorriti at iconmedialab.es
Telephone +34 91 521 00 80
Facsimile +34 91 522 82 20
IconMedialab Madrid
More information about the thelist
mailing list