diff --git a/go-form-plugin/go-form-plugin.php b/go-form-plugin/go-form-plugin.php index 8714b6f..6079d8f 100644 --- a/go-form-plugin/go-form-plugin.php +++ b/go-form-plugin/go-form-plugin.php @@ -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'])) { diff --git a/go-form-plugin/templates/form-shortcode.php b/go-form-plugin/templates/form-shortcode.php index 8f259a9..017a001 100644 --- a/go-form-plugin/templates/form-shortcode.php +++ b/go-form-plugin/templates/form-shortcode.php @@ -73,6 +73,8 @@ + +
diff --git a/go-form-plugin/templates/table.php b/go-form-plugin/templates/table.php index 544b3e0..3439498 100644 --- a/go-form-plugin/templates/table.php +++ b/go-form-plugin/templates/table.php @@ -11,6 +11,7 @@ Email Date Added Action + Comment @@ -38,7 +39,8 @@ - + comment) ?> +