--- /dev/null
+<?php
+require_once('includes/utils.php');
+require_once('includes/fields.php');
+
+function confirm_sent_form_data($data, $keys) {?>
+ <form method="post" action="">
+ <table style="width: max-content;"><?php
+ foreach ($keys as $key) {
+ if (!empty($data[$key])) {?>
+ <tr>
+ <th><?php esc(key_to_human_text($key));?>:</th>
+ <td><?php esc($data[$key]);?></td>
+ </tr><?php
+ hidden_field($key, $data[$key]);
+ }
+ }?>
+ </table>
+ <input type="submit" name="back" value="Back" />
+ <input type="submit" name="confirm" value="Confirm details are correct" />
+ </form><?php
+}