No exactly sure what your problem/reason for this is. So excuse my ignorance if im wrong or underestimating your understanding.
Anyways if u wanted elements on a web page in HTML (such as buttons, forms etc) to be coded in PHP you would have to echo these out anyways so they would still be in...