Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Connecting the form plugin with the database plugin

form plugins

Started by DouxDoux 3 years ago · 5 replies · 991 views
3 years ago

I'm trying to find a way to connect my GRAV form to my postgresql database using the database plugin. The goal would be to save the form content to the database. I have all the prerequisites installed, but I don't really understand to go from there.

Did anyone tried it already ? Do yo have any idea which files should be modified ? I'm a a loss.

3 years ago

@douxdoux-1312, I was only showing how a plugin can intercept the 'Submit' of a form and processing the custom action.

Both the Database plugin and SQLite plugin contain part of your needs which you can combine into your own plugin.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 2 days ago
2 81 3 hours ago
Plugins · by renedebaaij, 1 week ago
1 135 3 days ago
Plugins · by Thomas, 6 days ago
1 144 5 days ago
Plugins · by complanar, 4 weeks ago
6 471 3 weeks ago
Plugins · by BenLaKnet, 3 weeks ago
1 295 3 weeks ago