I have a form with few fields that collects some numbers from user. On submit, it will use a custom php code to do sam mathematical calculation, then echo the result and also show the form again. The result echo is also embedded in the custom php event. See the screenshot:
[attachment=0]Capture.JPG[/attachment]
The issue is that if I turn on the Cache in Joomla, after I submit the form, the result doesn't show and the form appears without users input. If I turn off the cache, every thing works as it should (the results of the calculation is displayed and form is also displayed with the data that the user entered).
I'm not sure why this is happening and how can I fix this so that I can enable cache on my site.
Any help is much appreciated.
[attachment=0]Capture.JPG[/attachment]
The issue is that if I turn on the Cache in Joomla, after I submit the form, the result doesn't show and the form appears without users input. If I turn off the cache, every thing works as it should (the results of the calculation is displayed and form is also displayed with the data that the user entered).
I'm not sure why this is happening and how can I fix this so that I can enable cache on my site.
Any help is much appreciated.