The Big Spring Sale! Up to 50% off!

PHP scripts to access MySQL database table with a Joomla template distributed by Nicepage

pierre.pistoulet
4 Posts
pierre.pistoulet posted this 03 February 2021
Ask a Question

Hello
I have struggled to be able to launch a PHP script to access a database table (inserting new data, selecting existing data inside). Indeed all the documentation within Nicepage is more to just send an email in case we click the "Submit" button of a form.
Example 1 attached (screenshot of the form & php script) finally works fine on both local (wamp) and distant servers. The project was exported in HTML.
Example 2 is different from 1st example in the way it uses a template from Nicepage which is extracted on Joomla (I believe that the extract on HTML is said to be not valid -- template ID: 23330). In this case eventhough the "Submit (Valider)" button is linked to the php script URL, it does not work. Even the script looks not to be executed at all. Indeed I do not see the logfile created which was working fine in example 1.
How shall I do? Is there some documentation somewhere?
Attached files to give a maximum detail.
Thanks, Pierre

Hello I have struggled to be able to launch a PHP script to access a database table (inserting new data, selecting existing data inside). Indeed all the documentation within Nicepage is more to just send an email in case we click the "Submit" button of a form. Example 1 attached (screenshot of the form & php script) finally works fine on both local (wamp) and distant servers. The project was exported in HTML. Example 2 is different from 1st example in the way it uses a template from Nicepage which is extracted on Joomla (I believe that the extract on HTML is said to be not valid -- template ID: 23330). In this case eventhough the "Submit (Valider)" button is linked to the php script URL, it does not work. Even the script looks not to be executed at all. Indeed I do not see the logfile created which was working fine in example 1. How shall I do? Is there some documentation somewhere? Attached files to give a maximum detail. Thanks, Pierre
Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 05 February 2021

Hi Pierre,

Nicepage Form is a usual HTML form. It has no relation to whether the PHP script is executed on the server or not. The same is related to the Nicpage plugin and theme. This is an external script. Here we can provide general recommendations only: make sure that the path to the PHP file specified in the Form action attribute is valid.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Pierre, Nicepage Form is a usual HTML form. It has no relation to whether the PHP script is executed on the server or not. The same is related to the Nicpage plugin and theme. This is an external script. Here we can provide general recommendations only: make sure that the path to the PHP file specified in the Form action attribute is valid. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments