Formbuilder to Mysql - Post ID 272268

User 2793021 Photo


Registered User
7 posts

I'm trying to use WFB to update my database using PHP. I'm a fairly proficient mysql / php coder (though only procedural style, so I'm finding it a bit hard to dig into WFB's object-oriented code), but I can't get WFB to connect with my database.

WFB claims to make the connection directly. I can't make that work, but it's not really what I want anyway. Ideally, I'd like to intercept the field names and values actually submitted after the form has been successfully processed. Even if I could capture the HTML that comes back in the form of the "thank you!" message, I could take it from there.

I've got as far as finding a place in WFB (exported) file fbapp/phpformpage.cls.php where I might include a php file of my own making. It's at line 327, in function _DoProcessPostedData. My php insert wouldn't upset the flow of WFB's processing, but it would enable me to perform some extremely powerful background programming, which is what I want.

My problem is that I can't work out how to set a variable that enables me to access the field names and corresponding values. I imagine it might be something like $myData = FormPage::GetInstance(); But that certainly doesn't work, and you can probably spot the shortcomings in my object-oriented-programming-novice code immediately!

I really want to crack this problem. I like WFB a lot, and I have major plans for adding it to my workflow. Can anybody tell me how to do it?
User 187934 Photo


Senior Advisor
20,181 posts

Hi Paddy,
Read through this thread.
http://www.coffeecup.com/forums/web-for … art-forms/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.