POST form and a gateway

hi all
i am, trying to build a kind of gateway with xojo.

this server gets called from a php page with a form which posts data to the server itself.

My problem is i don’t know how to get back to the php page (the same and/or a different one) to display the right messages and so on.

Anyone who could point me in the right direction?

Thank you in advance

Antonio