KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Form is created. How to gather the Submit? #1685

Open Richb201 opened this topic on on Oct 28, 2020 - 3 comments

Richb201 commented on Oct 28, 2020

In the MyFormUser.php I have included this:

protected function bindParamsToInputs()
{
    return array(
        "bus_comp"=>"survey_buc_comps",
        "project"=>"survey_project",
        "activity"=>"survey_activity",
    );
}

in the MyFormUser.view.php at the bottom I have included this:

<div class="form-group" style="margin-top:30px;">
    <button class="btn btn-lg btn-primary">Submit form</button>
</div>

The form seems to be be generated OK. How can i see what choices the user has chosen on the form? (ie where does the submit go to?)

KoolReport commented on Oct 28, 2020

Basically, what name given to widget will be the key name in the $_POST, you can access through $_POST["{widget-name}"].

Richb201 commented on Oct 28, 2020

Can you point me to an example? Do I need to set up a second page where the user goes after pressing submit?

Richb201 commented on Oct 29, 2020

Or, as alluded to by another comment up here from 2018, is the same form page reloading?

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None