What potential pitfalls should be considered when using multiple submit buttons in a PHP form?

One potential pitfall when using multiple submit buttons in a PHP form is that all the buttons will submit the form, which can lead to unintended actions or processing. To solve this issue, you can check which submit button was clicked using its name attribute and perform different actions based on that.

```php
if(isset($_POST['submit_button1'])) {
    // Code to handle submit_button1 action
} elseif(isset($_POST['submit_button2'])) {
    // Code to handle submit_button2 action
} else {
    // Default action if no submit button is clicked
}
```
In this code snippet, we check which submit button was clicked by using the isset() function on their respective names ('submit_button1' and 'submit_button2'). We can then perform different actions based on which button was clicked.