I think the trick is to put all the code in the template, nothing on the page.
so you may need to retry
However this is not the case with edit form tut.
You have to get the post Id from the page not the template i guess
and edit it appropriately…
I get blank in that case while putting the $options array in the template
I get a 500 internal server error