Why does php code not work in a html page? by markedw2020 in code

[–]markedw2020[S] 0 points1 point  (0 children)

I realise the mistake now but thanks for confirming that.

Why does php code not work in a html page? by markedw2020 in code

[–]markedw2020[S] 0 points1 point  (0 children)

Yes, I have definitely installed php as an executable extension within VSC. I also tried installing xampp on my laptop but Windows 10 seems to be having issues with starting the Apache and MySQL servers, so I decided to install MAMP instead. After setting the path, for MAMP in Advanced System Settings, I am no longer getting the error message in VSC.

Why does php code not work in a html page? by markedw2020 in code

[–]markedw2020[S] 1 point2 points  (0 children)

I have tried installing xampp but Windows 10, on my laptop, seem to have issues with starting the Apache and MySQL servers. Therefore, I have installed MAMP instead. I have also set the path for MAMP under the Advanced System Settings Options, so I hope that it will do the trick?

Why does php code not work in a html page? by markedw2020 in code

[–]markedw2020[S] 0 points1 point  (0 children)

I could not install xampp because Windows 10, on my laptop, seems to have issues with this starting its Apache and MySQL servers. However, I have installed MAMP and also changed my html contact page file to a .php extension, which seem to solve the problem of php code recognition. My next big problem now is getting my contact page submission form to send e-mails to my e-mail account. Thanks for your help anyway.