Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » show result of a form

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 808 Views
  • ojalà
    Avatar
    Community Member
    87 Posts

    show result of a form Link to this post

    Hi!
    I create a form taht take name, typology and category. I want show in my page the value of form, after push submit. How can do this? My function don't run.

    function BrowserPollResults() {
    $submissions = DataObject::get('BrowserPollSubmission');

    $doSet = new DataObjectSet();
    foreach($submissions) {

    $record = array(
    'name' => $name,
    'tipology' => $tipology' ,
    'category' => $category

    );
    $doSet->push(new ArrayData($record));
    }
       
    return $doSet;
       }

    808 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.