w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Is it possible for a Joomla Form plugin to create a table and save form data to that table?

While installing plugin you can create DB tables, Its not a big deal create the SQL file with proper table query and set that inside your XML file.

Also you can create a forms(with many fields) inside your plugin file, But the problem is you should have any components controller and model related to this form submission task. Bcoz form submission you cannot handle inside plugin file, it should required a controller and model files.

So basically your plugin have related components then you can achieve it with form action like below.

<form
action="index.php?option=com_yourcomponent&task=your_controller.your_function">

For creating DB table while installing plugin check this link

Hope its helps..





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.