1 open "links" for output as #1
2 for m=1 to 12: m$=mid$("010203040506070809101112", m*2-1, 2): dd=val(mid$("312931303130313130313031", m*2-1, 2)): for d=1 to dd: d$=str$(d): if d<10 then d$="0"+d$
3 print #1, "<li><a href=";chr$(34);"http://apod.nasa.gov/apod/ap11";m$;d$;".html";chr$(34);" target=";chr$(34);"o";chr$(34);">2011";m$;d$;"</a></li>":next d: next m: close #1
oh duh. I see now. Thanks.