]> git.sesse.net Git - ccbs/blob - html/do-registration.pl
The "edit scores" backend now finds out which update button was pressed.
[ccbs] / html / do-registration.pl
1 #! /usr/bin/perl
2
3 use ccbs;
4 use strict;
5 use warnings;
6
7 my $dbh = ccbs::db_connect();
8 my $cgi = new CGI;
9
10 my $tournament = $cgi->param('tournament');
11 my $player = $cgi->param('player');
12 my $paid = $cgi->param('paid');
13
14 $dbh->do('INSERT INTO tournamentparticipation (tournament, player, paid) VALUES (?,?,?)',
15         undef, $tournament, $player, $paid);
16
17 ccbs::print_see_other('registration.pl?id=' . $tournament);
18
19 $dbh->disconnect;