-2

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??

Lawrence Cherone
  • 46,049
  • 7
  • 62
  • 106

1 Answers1

1

You probably need the package which allows PHP to be interpreted and executed on server side.

Linux

Try to install the following package :

libapache2-mod-php7.0

Windows

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

Gangai Johann
  • 881
  • 12
  • 17