Forums / Developer / Process data received from a form in php
Gambarini Ludovic
Tuesday 22 December 2009 12:10:54 am
Hello, I created a basic form in eZ Publish and I can display the data sent through a copy of the template "form" and having as my form rename the directory "/collectedinfo". So until then, everything works properly. Now I'd like to know how I can retrieve the information sent from my form in either php variables, or simply a new object with php as attributes data received. Is there a tutorial or a topic to talk about that? Or simply have a track ... Because I spent some time looking but without much success ... Thank you in advance for your answers and good day!PS: Excuse me for my English writing not the best;)
Nicolas Pastorino
Tuesday 22 December 2009 1:22:07 am
Hi Ludovic and welcome in the eZ Community !
For us to help you solve your issue, we'd need more information:
Cheers,Let us know,
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye
Tuesday 22 December 2009 1:43:56 am
Hello and thank you for your reply. So, yes I am using the "Feedback from" and I'd like to retrieve the data to process (calculations) in PHP. For example: 12,14,16 data received and would like to make calculations with these numbers ... Is it possible to do this?Thank you and greetings
L.G.
Tuesday 26 January 2010 2:59:02 am
Hello Ludovic,
Late answer on this, you may want to have a look at the
eZInfocollectorFunctionCollection::fetchCollectedInfoCollection( $collectionID, $contentObjectID );
method in kernel/infocollector/ezinfocollectorfunctioncollection.php l.62 (eZ Publish 4.2). This will give you access to what you need.
Let us know how it goes, Cheers,
David Wirth
Wednesday 27 January 2010 6:17:18 am
Is there a straightforward way to convert an information collection object into a node so it can go through workflow and then be published? (This is a variation on a question I asked previously. I think the answer is "develop an extension" but I just want to make sure I'm not missing something simpler.)