X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-registration.pl;fp=html%2Fdo-registration.pl;h=a81e48a95a581cd5afb1304ec8cc3d7a6a792924;hp=0000000000000000000000000000000000000000;hb=35f6e765d69f966c8b4abc84f25bb0bfa3df9853;hpb=27e59286fabcd68735d8601b232a954015da812e diff --git a/html/do-registration.pl b/html/do-registration.pl new file mode 100755 index 0000000..a81e48a --- /dev/null +++ b/html/do-registration.pl @@ -0,0 +1,19 @@ +#! /usr/bin/perl + +use ccbs; +use strict; +use warnings; + +my $dbh = ccbs::db_connect(); +my $cgi = new CGI; + +my $tournament = $cgi->param('tournament'); +my $player = $cgi->param('player'); +my $paid = $cgi->param('paid'); + +$dbh->do('INSERT INTO tournamentparticipation (tournament, player, paid) VALUES (?,?,?)', + undef, $tournament, $player, $paid); + +ccbs::print_see_other('registration.pl?id=$tournament'); + +$dbh->disconnect;