Hi All,
I can populate a user form and I now how to submit it into a table i the database, but how do I update with the information I retrieved? This is assuming I make a change to one of the populated fields, like correcting a spelling error or modifying a date.
I use this function to submit new info to the database:
function submitform($data, $form) {
// Create a new Member object and load the form data into it
$submission = new StudentData();
$form->saveInto($submission);
// Write it to the database. This needs to happen before we add it to a group
$submission->write();
Director::redirectBack();
}
I'm guessing a fairly simple modification of the function above will allow me to update my table with my currently populated fields.
Thanks in advance.