I have written a custom php script that receives data via a POST form and then creates an output on the same page after some complex calculations. The script is complete with "header" and "body" and works well as a standalone script that I can call via a link on any of my web pages.
I would like to integrate it into a new nicepage page with its header and footer, so it has the same appearance as all the other pages. My website is exported to HTML, not using Wordpress or Joomla.
I understand that I can only paste the "body" part of my script and may have to change some style information, as the CSS in the information is part of the Nicepage framework.
Unfortunately, the page shows nothing in the preview.
I have looked at similar questions, and most refer to sending emails and don't cover this issue. In one case the answer was
"PHP control is only for the WP and Joomla exports", but this answer is 3 years old. Since then Nicepage has had many new versions. I am wondering if there is now a solution.
In my view, PHP execution should depend only on the server's ability. My server works well with my script. So, what is it in Nicepage that impedes the execution?
In case there is really no way, I could imitate the general header and footer in my script to give it the same appearance. The only thing that I have not clear is how to apply the language selection in the header. Does anybody know how to do it?
I have written a custom php script that receives data via a POST form and then creates an output on the same page after some complex calculations. The script is complete with "header" and "body" and works well as a standalone script that I can call via a link on any of my web pages. I would like to integrate it into a new nicepage page with its header and footer, so it has the same appearance as all the other pages. My website is exported to HTML, not using Wordpress or Joomla. I understand that I can only paste the "body" part of my script and may have to change some style information, as the CSS in the information is part of the Nicepage framework. Unfortunately, the page shows nothing in the preview. I have looked at similar questions, and most refer to sending emails and don't cover this issue. In one case the answer was "PHP control is only for the WP and Joomla exports", but this answer is 3 years old. Since then Nicepage has had many new versions. I am wondering if there is now a solution. In my view, PHP execution should depend only on the server's ability. My server works well with my script. So, what is it in Nicepage that impedes the execution? In case there is really no way, I could imitate the general header and footer in my script to give it the same appearance. The only thing that I have not clear is how to apply the language selection in the header. Does anybody know how to do it?Last edited 27 August 2022 by v.piasta