per esempio, nella stessa "tuapagina.php"

<?php

if ( isset($_POST['button1']) ) {
//tuo codice php
}
?>
<form action="tuapagina.php"></form>