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

PHP script / submit button

2 weeks 1 day ago #1

  • Bernhard's Avatar
  • Bernhard
  • Posts: 50
Hi Vyacheslav,

In my client projects I do use a lot PHP script section on the submit button.

For some reason in one of my projects when adding the script nothing happens.

Any ideas what could go wrong?

Thanks for a hint.

Kind regards,
Bernhard

1 week 6 days ago #2

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

It is very difficult to determine without seeing the code :)
There may be an error in the code or some kind of conflict

Best Regards,
Vyacheslav, Balbooa Support Team

1 week 6 days ago #3

  • Bernhard's Avatar
  • Bernhard
  • Posts: 50
Hi Vyacheslav,

in the PHP Script I gather some field data in a object and include another script on the server ... basically like this:
$formdata = new stdClass();
$formdata->form                         = '[Form ID]';
$formdata->submission             = '[Submission ID]';

$formdata->name                        = '[Field ID=2]';
...

require_once JPATH_ROOT . '/forms/php/submit.php';

The submit.php I successfully tested by calling it form within a standard Joomla article with RegularLabs Sourcerer, like this:
{source}<?php require_once JPATH_ROOT . '/forms/php/submit.php'; ?>{/source}

This technique I do use on a couple of other project - usually without trouble. It is just that is in this single project inside the PHP Script section this script seems not to get included. - Therefore I am wondering on how else I could debug this.

I hoped you could give me a hint on how to deal with this. :)

1 week 5 days ago #4

  • Bernhard's Avatar
  • Bernhard
  • Posts: 50
Hi Vyacheslav,

the problem disappeared after going life with the project. :) :
As far as I understand the script call got blocked either by the "Offline" state of the site or by the firewall which blocked the IP. :oops:

1 week 5 days ago #5

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 23440
Let us know if you need more assistance!

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