Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

show result of a form


Reply

865 Views

Avatar
ojalà

11 November 2008 at 5:42am Community Member, 87 Posts

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;
   }