I will have a list of records, on that list of records, if the users clicks on a specific record link it will be redirected to the insertEdit form page.
Here’s an outline:
Links to edit records. Pass the ID in the URL (this is genuine GET usage)
<ul>
<li><a href='insertEdit.php?id=1'>Edit 1</a></li>
<li><a href='insertEdit.php?id=2'>Edit 2</a></li>
<li><a href='insertEdit.php?id=3'>Edit 3</a></li>
</ul>
insertEdit page — build the form
<form method="post" action="insertEdit.php">
<p style="display: none;">
<?php
//hidden input with ID of entity or 0 to add new
$id = (isset($_GET['id'])) ? (int)$_GET['id'] : 0;
echo "<input type='hidden' name='id' value='$id'>";
?>
</p>
<input type="text" name="blah" value="blah blah">
</form>
Then when processing the form you look at $_POST[‘id’]. If it’s 0 you are adding a new record, if it’s an int, that’s the id of the entity you’re editing.