hi.. me again.. hehe..
since i've completed my first project.. and it was a success.. ty for the help...
i've moved on to a bigger and bolder project.. using a database to signup players.. instead of the admistrator signing in the players...
i've got the signup page working great..
it adds players to the database as they sign up...
but before i can apply this database to the forms i created before... i need to be able to 'confirm' each player...
i created a script that will read the database and create a form with yes/no radio buttons to confirm each player...
(sometimes players dont show up...)
here's the form script....
and this works nicely...
so.. now the database/tourney administrator has a form with each of the players in it and a button to confirm/delete each player...
i want to submit this data to an asp script to "trim" the database... confirming the players that showed up...
so now i have a bunch of form variables ( confirm1, confirm2..etc.) passed on to the next page
so that script will loop thru the form data.. and insert the confirm(counter) value into the "confirm" field on the database
(so when the tournament is ready to start... it can ignore the 'unconfirmed' players when creating the pairings tables)...
this is where i've come to a stumbling block...
what would be the best/easiest way to do this?
would it be better/easier to loop thru the confirm1,confirm2 values and delete the unconfirmed records?
OR
would it be better/easier to just add the values to the field...
since i've completed my first project.. and it was a success.. ty for the help...
i've moved on to a bigger and bolder project.. using a database to signup players.. instead of the admistrator signing in the players...
i've got the signup page working great..
it adds players to the database as they sign up...
but before i can apply this database to the forms i created before... i need to be able to 'confirm' each player...
i created a script that will read the database and create a form with yes/no radio buttons to confirm each player...
(sometimes players dont show up...)
here's the form script....
Code:
<form method="POST" action="trimdbase.asp">
<table BORDER="1" align="center" width="500">
<tr>
<td align="center" rowspan="2" bgcolor="#0000FF"><font color="#FFFFFF"><b>#</b></font></td>
<td align="center" rowspan="2" bgcolor="#0000FF"><font color="#FFFFFF"><b>Player Name</b></font></td>
<td align="center" rowspan="2" bgcolor="#0000FF"><font color="#FFFFFF"><b>Email</b></font></td>
<td align="center" colspan="2" bgcolor="#0000FF"><font color="#FFFFFF"><b>Confirmed</b></font></td>
</tr>
<tr>
<td align="center" bgcolor="#0000FF"><font color="#FFFFFF"><b>Yes</b></font></td>
<td align="center" bgcolor="#0000FF"><font color="#FFFFFF"><b>No</b></font></td>
</tr>
<%
dim counter
counter=1
' Move to the first record
rs.movefirst
' Start a loop that will end with the last record
do while not rs.eof
%>
<tr>
<td align="center"><% =counter %></td>
<td align="center"><%= rs("playername") %></td>
<td align="center"><%= rs("playeremail") %></td>
<td align="center" bgcolor="#008000"><input type="radio" name="confirm<% =counter %>" value="Yes"></td>
<td align="center" bgcolor="#FF0000"><input type="radio" name="confirm<% =counter %>" value="No" checked></td>
</tr>
<%
counter=counter+1
' Move to the next record
rs.movenext
' Loop back to the do statement
loop %>
</table>
<input type="hidden" name=playercount value="<% =counter-1 %>">
<p align="center"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"><br></form>
and this works nicely...
so.. now the database/tourney administrator has a form with each of the players in it and a button to confirm/delete each player...
i want to submit this data to an asp script to "trim" the database... confirming the players that showed up...
so now i have a bunch of form variables ( confirm1, confirm2..etc.) passed on to the next page
so that script will loop thru the form data.. and insert the confirm(counter) value into the "confirm" field on the database
(so when the tournament is ready to start... it can ignore the 'unconfirmed' players when creating the pairings tables)...
this is where i've come to a stumbling block...
what would be the best/easiest way to do this?
would it be better/easier to loop thru the confirm1,confirm2 values and delete the unconfirmed records?
OR
would it be better/easier to just add the values to the field...