Add comments

This commit is contained in:
2026-05-06 12:31:21 +02:00
parent 6884ce93a4
commit cd4635865c
3 changed files with 8 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ function go_form_activate()
rank tinyint(2) DEFAULT 0,
email varchar(255) DEFAULT NULL,
egd_number varchar(50) DEFAULT NULL,
comment text DEFAULT NULL,
created_at datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
PRIMARY KEY (id),
KEY form_id (form_id)
@@ -107,7 +108,8 @@ function go_form_handle_submission()
'club' => sanitize_text_field($_POST['club'] ?? ''),
'rank' => intval($_POST['rank']),
'email' => sanitize_email($_POST['email'] ?? ''),
'egd_number' => sanitize_text_field($_POST['egd_number'] ?? '')
'egd_number' => sanitize_text_field($_POST['egd_number'] ?? ''),
'comment' => sanitize_textarea_field($_POST['comment'] ?? '')
];
if (empty($data['first_name']) || empty($data['last_name'])) {