Sep 19th, 2013, 5:07 AM
(Dec 6th, 2010, 1:57 AM)Printline Wrote:(Dec 4th, 2010, 10:42 AM)Ben Wrote: Ah... unfortunately this one won't be so simple.
Here's the trouble. The core function ft_update_submission() was... well, rather badly designed. From the name, it *sounds* like it should just update a submission - which is does - but it also does a whole lot of other stuff relevant only within the Form Tools UI, like checking permissions, sending emails, etc.
I'm going to be working on an update to the API in the next couple of weeks. I'll include a function to do this for you. If you haven't heard back from me in a little while, send me an email. (ben.keen@gmail.com).
- Ben
Hi' Ben
Yeah, thought it wouldn't be as easy as it might sound.... I wil try to figure out a way to work around this for now, maybe i will just settle with the fact that it creates a new submission.
I will look forward to your update. I will be in touch.
- Printline
Hi' there
I have a little problem. I have changed webserver and gone from a php version 4 to a php version 5.4.
Now, I think this affects some of the php coding from the above threads because i can't fetch the submitted data and pass it into my form anymore. I believe that the below code is what should do the trick, but for some reason it doesn't anymore.
PHP Code:
$submission_info = ft_get_submission_info($form_id, $submission_id);
But this code still works:
PHP Code:
$account_info = ft_get_account_info($_SESSION["ft"]["account"]["account_id"]);
Any idea on what i need to change the php to.....????
Thanks in advance!