Forums

How to check for successful submission

adop 31 May, 2012
Hi Bob,

I need to check for successful submission of a form. For that purpose can I rely on cf_id being set and check it in a custom code action? or should I use $db->getAffectedRows()>0? or there is something else more obvious that I am missing?

Thanks,
adop
GreyHead 31 May, 2012
Hi adop ,

What do you understand by 'successful submission' ?

Bob
adop 31 May, 2012
Hi bob,

I mean that data has been saved.

adop
GreyHead 31 May, 2012
Hi adop,

I don't know exactly. The DB Save very rarely fails. I guess that checking the ID is good; or you could re-query the table to look for a matching record.

Bob
This topic is locked and no more replies can be posted.