I am trying to develop a comment box on my website, but when I add comment.php
file in
<form action="comment.php" method="POST"...
Then after filling the form when I click submit, the page completely shows me the PHP
script on next page.
So how to solve this problem?
Do you guys have some idea??
You probably need the package which allows PHP to be interpreted and executed on server side.
Try to install the following package :
libapache2-mod-php7.0
Check this SO answer, which is probably the best explanation you might find : PHP code is not being executed, instead code shows on the page
Good luck