I coded a WordPress page on which users can submit their name. After pressing submit, it will send an API request to an external API, which returns information about their name. This is a simple overview:
<form action="" method="post">
Name: <br><input name="example" type="text" /><br>
<input name="submit" type="submit" />
</form>
<?php
if (isset($_POST['submit'])) {
$example = $_REQUEST['example'];
$result = $customcontact->lookupByName($example); /** API PHP Library */
print_r($result);
}
?>
For the next step, I would like to save these request and make an short overview of the history of requests made for each user. So that they can view and check previous requests without making new calls.
Can someone point me in the right direction or perhaps knows a tutorial/guide for something similar?
Thanks a lot!
Mark