ASP.NET's webforms work by writing a lot of event attributes into the HTML form fields it generates, adding big wodges of JavaScript, and wrapping the whole page in a <form>.
As Shrike says, there are a number of such frameworks written for PHP; but the whole mechanism strikes me personally as a bit brutalistic (in the architectural sense).