Try The Gridbox Store App Beta

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

Debug PHP with Forms Submit Button

5 days 11 hours ago #1

  • Birger's Avatar
  • Birger
  • Posts: 77
Hello,

I have a working code with an ulpload form. I have added an INSERT in the end, which seems to have errors. How can I debug the code? Is therre any way I can use echo $query and exit; with Forms Submit Button PHP?

I have turned on the Joomla debug feature, but form just redirects to the same page and I can't echo or exit.

Right now it is try and error.

I am using data tags, which do work with the first part of the code (UPDATE), but INSERT as said seems to have issues. I need to see what the actual mysql query says.

5 days 11 hours ago #2

  • Birger's Avatar
  • Birger
  • Posts: 77
Code is working now.
My mistake.

I could INSERT my query to a log table now.

Is there a better way to debug?

3 days 19 hours ago #3

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

It's great that you found the solution yourself
You can make changes to file ba-form.js (components/com_baforms/assets/js/ba-form.js)

then the fields will not be cleared after sending, and an error will be visible in the console

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum