I have this code in mi html page node
<xf:form action="{{ link('paginas/tienda') }}" method="post">
<xf:button icon="preview" name="buy">Buy</xf:button>
</xf:form>
how can i call a php function when i click that button?
I am trying to update my database through the post method, but when using the input of type submit, I get an error to ensure, it should be noted that I am trying to use isset ($ _ POST), there is another way to call a function from a button?