python + flaskの環境で開発をしています.
下のようなHTMLのコードでテーブルの中にチェックボックスを配置しています.
html
1<table class = "thismonthschedule"> 2 <thead> 3 <tr> 4 <th scope = "cols" colspan = 2></th> 5 <th scope = "cols" class = "days">前半 (17:00 ~ 19:00)</th> 6 <th scope = "cols" class = "days">後半 (19:00 ~ 21:00)</th> 7 <th scope = "cols" class = "bikou">備考</th> 8 </tr> 9 </thead> 10 <tbody> 11 <tr> 12 <th scope = "row">1</th> 13 <th scope = "row">(金)</th> 14 <td><input type = "checkbox" value = "aaa"></td> 15 <td><input type = "checkbox" value = "aaa"></td> 16 <td>勤労感謝の日</td> 17 </tr> 18 <tr> 19 <th scope = "row">1</th> 20 <th scope = "row">(金)</th> 21 <td><input type = "checkbox" value = "aaa"></td> 22 <td><input type = "checkbox" value = "aaa"></td> 23 <td>勤労感謝の日</td> 24 </tr> 25 <tr> 26 <th scope = "row">1</th> 27 <th scope = "row">(金)</th> 28 <td><input type = "checkbox" value = "aaa"></td> 29 <td><input type = "checkbox" value = "aaa"></td> 30 <td>勤労感謝の日</td> 31 </tr> 32</tbody> 33</table>
やりたいこととしては,各ユーザーのチェックボックスの値を取得して送信し,管理者がそれを確認できるような形にしたいのですが,どのように実装するのが宜しいでしょうか.
データベースなども利用したことがなく,また参考にできるサイトなども見つけられておらず困っております.
どなたかご教授宜しくお願い致します.
あなたの回答
tips
プレビュー