So, I'm writing a script in php to query my datbase for my forums, here is the code I have so far:
Now, if you can see it, It prints out a table with the the usernames and email addresses (plus mailto link), what I want to do is insert a checkbox in a column right before the username column.
What I need to do is be able to select the names I want to verify with checkboxes and MODIFY (chenge the 0 to 1) the value in the databases for only the names that I checked off, (if you can see, I have the $PHP_SELF and form tags filled in already so I can see what I need to do).
Does anyone understand what I'm trying to say here? It's pretty hard for me to explain wha tI want to do in PHP. If anything, i just need some info on how PHP handles checkboxes.
Code:
while ( $row = mysql_fetch_array($result) ) {
//display usernames, and email address (link)
echo("<tr>\n<td>" . $row["username"] . "</td><td> <a href=\"mailto:" . $row["user_email"] . "\">" . $row["user_email"] . "</a></td>\n</tr>");
}
//Row for submit button
print("<input type=\"submit\" value=\"Submit\"></form>");
//close the table
print("</table>");
Now, if you can see it, It prints out a table with the the usernames and email addresses (plus mailto link), what I want to do is insert a checkbox in a column right before the username column.
What I need to do is be able to select the names I want to verify with checkboxes and MODIFY (chenge the 0 to 1) the value in the databases for only the names that I checked off, (if you can see, I have the $PHP_SELF and form tags filled in already so I can see what I need to do).
Does anyone understand what I'm trying to say here? It's pretty hard for me to explain wha tI want to do in PHP. If anything, i just need some info on how PHP handles checkboxes.