//to get the value from the form my $testTitle = param('title'); //to delete the row in the database $rows = $dbh->do(" DELETE FROM music WHERE title = $testTitle ");