/** * ajax function to update the form */ function updateForm() { $adapter = new Adapter(); try { $adapter->saveFields(); } catch (\Exception $e) { die($e->getMessage()); } //send back the success message echo "true"; die; }
/** * ajax function to update the form */ function updateForm() { $adapter = new Adapter(); try { $adapter->saveFields(); } catch (\Exception $e) { die($e->getMessage()); } //send back the success message echo "true"; die; }