What is the best practice for distinguishing buttons with unique IDs in PHP forms?

When creating buttons with unique IDs in PHP forms, it is best practice to use a naming convention that includes a unique identifier for each button. This can help differentiate between buttons and ensure that the correct action is taken when a button is clicked. One common approach is to append a unique identifier to the button's name attribute, which can then be used to identify the button in the PHP form processing code.

<form method="post" action="process_form.php">
    <input type="submit" name="submit_button1" id="submit_button1" value="Submit Form 1">
    <input type="submit" name="submit_button2" id="submit_button2" value="Submit Form 2">
</form>