home *** CD-ROM | disk | FTP | other *** search
- <%
- ' First try cookie
- iRegID = Request.Cookies("BMG_Mixup_RegID")
-
- ' Failing that, try string
- If iRegID = "" Then
- iRegID = Request.QueryString("id")
- End If
-
- If iRegID = "" Then
- Response.Redirect("register.asp?type=comp")
- Else
- Set conn = Server.CreateObject("ADODB.Connection")
- conn.Open "Dance"
-
- CurrentComp = 0
-
- ' Find current competition (if exists)
- SQLQuery = "SELECT * FROM Comps"
- Set RSComps = conn.Execute(SQLQuery)
-
- Do While Not RSComps.EOF
- If RSComps("Current") = True Then
- CurrentComp = RSComps("CompID")
- End If
- RSComps.MoveNext
- Loop
-
- Set RSComps = Nothing
-
- If CurrentComp <> 0 Then
- ' --- Check to see if user has already entered comp ---
- SQLCheck = "SELECT RegID FROM CompResults WHERE CompID = " & CurrentComp
- Set RSCheck = conn.Execute(SQLCheck)
-
- AlreadyTried = "False"
-
- Do While Not RSCheck.EOF
- If RSCheck("RegID") = cint(iRegID) Then
- AlreadyTried = "True"
- End If
- RSCheck.MoveNext
- Loop
-
- SQLQuery = "SELECT * FROM Comps WHERE CompID = " & CurrentComp
- Set RSComp = conn.Execute(SQLQuery)
- End If
- %>
-
- <HTML>
- <HEAD>
- <TITLE>Dance.Com.2 - Win Free Stuff</TITLE>
- </HEAD>
-
- <BODY BGCOLOR="#99CC66" background="images/background.gif" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
- <table width="540" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="165"><img src="images/win/header_win.gif" width="206" height="61"></td>
- <td width="246"> </td>
- <td><img src="images/group.gif" width="129" height="61"></td>
- </tr>
- </table>
- <table width="540" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"><img src="images/splash/blank.gif" width="25" height="6"></td>
- <td </td>
- </tr>
- <tr>
- <td > </td>
- <td valign="top">
- <%
- ' Test to see if there is a current comp on
- If CurrentComp = 0 Then
- %>
- <font face="Arial" size="2"><P><BR><B>Sorry, at present we do not have any competitions.</B><P>
- <font face="Arial" size="1">Please return soon...
- <P><BR><P><BR>
- <P><BR>
- <%Else%>
- <% ' Test if person already tried comp
- If AlreadyTried = "False" Then%>
-
- <form method="POST" action="compresult.asp">
- <input type="hidden" name="currentc" value="<%=CurrentComp%>">
- <input type="hidden" name="RegID" value="<%=iRegID%>">
- <p><font face="Arial" size="2">
- Ok, here is another question to test your music knowledge and some more exclusive prizes.<br>Good luck!!
- </font></p>
- <P><font face="Arial" size="2">Who did Christian Fry tour with last year? (Oasis, Boyzone, Backstreet Boys?)
- <input type="text" name="Answer">
- </font>
- <P><font face="Arial" size="2">For a clue check out Christian Fry in <a href="guide.html">The
- Guide</a></font><BR>
- <P>
- <input type="submit" name="Submit" value="Submit">
-
- <input type="reset" name="Reset" value="Reset">
- </form>
-
- <%Else%>
- <font face="Arial" size="2"><P><BR><B>Sorry!</B><P>
- <font face="Arial" size="1">You only get one chance to enter this competition.
- We'll email you if you have won! Good Luck and return soon for our next competition...
- <P><BR><P><BR>
- <%End If%>
-
- <%End If%>
- </td>
- </tr>
- </table>
- <p> </p>
- </BODY>
- </HTML>
-
- <%
- conn.Close
- End If
- %>