how do i create custom php on a page?

i created a form that takes input and spits out results; trying to put it in a page. i followed this method:

however it dumped out content outside of the actual content window/container. you can see the stub prints i put in before and after the window.


Your code is executed outside <article> DOM so it doesn’t have background styling as the rest of the content. I am not very familiar with this method but I believe that there must be a way to get content inside the actual content area. YOu might consider using some plugin that supports PHP code inside page.

thanks aigars. i added an insert_php plugin that seems to be working well.