XF 2.2 How do I add a form/button to template!

XboxUnlimited

Active member
Hi,

I'm looking to add a button to a custom template of mine and then when it's clicked data is written to a table in the database, I'm not sure what the best way would be to about that, using a form, or a button? I looked around the documentation etc but still not sure, if anyone has any suggestions or pointers. that would be appreciated.

Thanks
 
Ok - I've worked out how to add the form to the template and I'm using hidden inputs to pass the variables I want to store in the database

I just need to work out the correct way to submit the form and save the data in the hidden inputs to the database, again any advice on this would be a great help. Thanks
 
Top Bottom