I am developing a booking plugin and I need help.
My aim is to get data to and from a database from the WordPress admin menu (I created a custom menu page for it). Now I don't know how the form should be submitted to a PHP script in WordPress environment.
<!-- HTML FORM -->
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<input type="text" name="reservation_capacity" placeholder="Reservation Capacity" />
<input type="button" name="Add Table" value="Add New Table" />
</form>
I would also need help as to how the plugin would create a form on the website and get data from their as well!