Have I gone uber retard?

# Thread: Have I gone uber retard?

1. Senior Member
Join Date
Dec 1969
Posts
884

## Have I gone uber retard?

&#060;SELECT name="GameNumber" size="1"&#062;<BR>&#060;%<BR>dim i<BR>for i = 1 to 40<BR> response.write "&#060;option"<BR> if i=1 then response.write " selected"<BR> response.write " value=&#039;"&i&"&#039;&#062;"&i&"&#060;/option&#062;"<BR>Next<BR>%&#062;<BR>&#060;/SELECT&#062;<BR><BR>In theory, that should produce a drop down menu, with content even, ne? Am I retarded somewhere in this?

2. Senior Member
Join Date
Dec 1969
Posts
2,854

## RE: Have I gone uber retard?

You forgot to do i=i+1 !<BR><BR>HTH.<BR>D.<BR><BR>&#060;SELECT name="GameNumber"&#062;<BR>&#060;% <BR>dim i <BR>for i = 1 to 40 <BR> response.write "&#060;option" <BR> if i=1 then response.write " selected" <BR> response.write " value=&#039;"&i&"&#039;&#062;"&i&"&#060;/option&#062;" <BR>i=i+1<BR>Next <BR>%&#062; <BR>&#060;/SELECT&#062;

3. Senior Member
Join Date
Dec 1969
Posts
467

## RE: Have I gone uber retard?

Works fine for me. What&#039;s your problem?

4. Senior Member
Join Date
Dec 1969
Posts
884

## That answers that question, then

I did go uber retard. Thanks! ::shakes head::<BR><BR>Us kids these days...

5. Senior Member
Join Date
Dec 1969
Posts
3,195

## Uh it looks like he is doing a loop

so why does he have to i=i+1?<BR>

6. Senior Member
Join Date
Dec 1969
Location
Indianapolis, IN
Posts
1,755

## RE: Have I gone uber retard?

Cleaned up a bit:<BR><BR>&#060;SELECT name="GameNumber" size="1"&#062;<BR>&#060;%dim i<BR>for i = 1 to 40%&#062;<BR>&nbsp;&nbsp;&#060;option<BR>&nbsp;&nb sp;&#060;%if i=1 then%&#062;selected&#060;%end if%&#062;<BR>&nbsp;&nbsp;value="&#060;%=i%&#062;"& #062;&#060;%=i%&#062;<BR>&nbsp;&nbsp;&#060;/option&#062;<BR>&#060;%Next%&#062;<BR>&#060;/SELECT&#062;<BR><BR>

7. Senior Member
Join Date
Dec 1969
Posts
2,854

## SHE.....

needs to increment the counter, Otherwise i is always = 1, no?<BR>

8. Senior Member
Join Date
Dec 1969
Posts
884

## Hmm.. since wassups didn't work..

I&#039;m going to try that.<BR><BR>I get a bit of a drop down menu, with nothing in it, and when I went to view source on the page.. and um.. it didn&#039;t response.write.<BR><BR>erg. I get weird problems.

9. Senior Member
Join Date
Dec 1969
Posts
3,195

## No

take another look she has for <BR><BR>for i = 1 to 40<BR><BR> ..blah..blah<BR><BR>next<BR><BR>It increments automatically with the loop ; )<BR><BR>

10. Senior Member
Join Date
Dec 1969
Posts
2,854

## Ignore me

Ignore me, I didn&#039;t read the code properly first time round! I&#039;m used to <BR><BR>Do While i &#060; 40<BR><BR>loop<BR><BR>etc etc.<BR><BR>Try this<BR><BR>&#060;SELECT name="GameNumber" size="1"&#062; <BR>&#060;% <BR>dim i<BR>i = 1 <BR>for i = 1 to 40 <BR> response.write "&#060;option" <BR> if i=1 then response.write " selected" end if<BR> response.write " value=="""&i&"""&#062;"&i&"&#060;/option&#062;" <BR>Next <BR>%&#062; <BR>&#060;/SELECT&#062;

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•