Gridbox Store App Released

Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

How to write submitted data to a flat file or database

1 week 10 hours ago #1

  • Alan's Avatar
  • Alan
  • Posts: 3
Good Morning,
I'm hoping you could help me, I would like to write some of the submitted data to either the database or a flat file. As we are using credit cards and CCV numbers we are'nt storing anything but we'd like to keep some of the submitted data such as amount, customer name, salesperson etc. Is it possible to do that via the Data After Submission field and if so, could you please provide me with some guidance on what parameters to use.

Thanks again, your product has achieved 95% of what we need just my CFO would like this one small extra part.
Attachments:

6 days 19 hours ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 12205
Hello,
Thank you for contacting us

This is a sample code:
$file = fopen(JPATH_ROOT.'/tmp/data.txt', 'a');
fwrite($file, "\n".date('F j, Y g:i a')."\n");
fwrite($file, "Name: [Field ID=2] \n");
fwrite($file, "Email: [Field ID=3] \n");
fclose($file);

Regards,
Vyacheslav, Balbooa.com

4 days 6 hours ago #3

  • Alan's Avatar
  • Alan
  • Posts: 3
Awesome .. thank you!

1 day 19 hours ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 12205
You are welcome ;)
Let us know if you need more assistance!

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum