u can use some param (POST or GET), i.e. called action, then, in your code, simply use if to determine which action to perform:
if($_GET["action"] == "")
{
// display form
}
else if($_GET["action"] == "edit")
{
// do edit actions
}
else if($_GET["action"] == "delete" && $_GET["confirm"] == "")
{
// show confirmation form for deletion , i.e.:
echo '<a href="page.php?action=delete&confirm=1&id=' . $_GET["id"] . '">Delete</a>';
echo '<a href="page.php">Cancel</a>';
}
else if($_GET["action"] == "delete" && $_GET["confirm"] == "1")
{
// delete
}
else
{
echo "Invalid action";
}
hth