HTML block with PHP behind

Permalink
i need to create a customer HTML form with php behind it to submit to a CRM.

where do i put the php file where i can reference it?

thanks

 
formigo replied on at Permalink Reply
formigo
Either a single page, or a single_page supported with a controller would be ideal for this type of application. Using a controller might be preferrable if you need to post to your site then facilitate the transmission of the data to CRM via API as the code could get complex, but you could still do it all in just a single page.

If you just need a form to route to an external link via it's action attribute then a single page alone will suffice.
dalmac replied on at Permalink Reply
hi, thanks for the reply.

i have created a single page now, but how do i add a controller?

a controller does seem a little extreme, i only need a bit of php to send the http post to the crm system.

thanks
formigo replied on at Permalink Reply
formigo
Try this post. Some of the db calls could be done better using AdoDB (I knew no better myself at the time) but it covers setting up the MVC perfectly

http://www.eantics.co.uk/whats-fresh/mvc-in-concrete5/...


Sent from my iPhone

> On 13 Dec 2013, at 10:37, "concrete5 Community" <discussions@concretecms.com> wrote:
dalmac replied on at Permalink Reply
thanks

i just done a separate html page with a php code behind, then stuck it in an iframe.

cheers