Form integration in UDT
Posted: Thu Nov 05, 2015 9:16 am
Hi,
I'm using CMSMS 1.12.
I'm busy developing a module for a customer.
I created a UDT that can be called in the content of a page to display specific info about a product.
From the UDT I call a form so that the product can be ordered. Everything has to happen within the UDT.
The form I created is not made with FormBuilder. I programmed it myself and called it action.orderform.php. It's using orderform.tpl as template.
Calling the form directly on a page works fine. It gets processed on submit.
Calling the form from the UDT and displaying it via the UDT on the page, I keep being sent back to the Home page on submit.
What did I do wrong?
I hope someone can help me.
Thanks in advance.
I'm using CMSMS 1.12.
I'm busy developing a module for a customer.
I created a UDT that can be called in the content of a page to display specific info about a product.
From the UDT I call a form so that the product can be ordered. Everything has to happen within the UDT.
The form I created is not made with FormBuilder. I programmed it myself and called it action.orderform.php. It's using orderform.tpl as template.
Calling the form directly on a page works fine. It gets processed on submit.
Calling the form from the UDT and displaying it via the UDT on the page, I keep being sent back to the Home page on submit.
What did I do wrong?
I hope someone can help me.
Thanks in advance.