Developing a plugin where users can edit entries saved in database

I’ve managed to do it, but probably there is a much cleaner WP way of doing these things.

So, I have a menu page that I’ve added using add_menu_page. On it, I display all the records. The url is:

/wp-admin/admin.php?page=plugin-settings (or whatever you call it)

I use:

<a href="https://wordpress.stackexchange.com/questions/218076/<?php echo bloginfo("url');?>/wp-admin/admin.php?page=utm-user-plugin-settings&id=<?php echo $row->id; ?>">Edit</a>

So basically, I ended up using the same page for my EDIT action by checking if $_GET[“id”] is set or not.

Again, there is probably a better way to do this, I just don’t know it yet, so this will do for now.