+ 10

How to add PHP code into HTML code

Please tell me

16th Oct 2020, 7:47 AM
HARDIK JAIN
HARDIK JAIN - avatar
6 odpowiedzi
+ 2
In this code you can see live how to add PHP into HTML code: https://code.sololearn.com/wdMg5lB9T43K/?ref=app
16th Oct 2020, 8:13 AM
JaScript
JaScript - avatar
+ 4
I have tried but I am not able to get the output
16th Oct 2020, 8:05 AM
HARDIK JAIN
HARDIK JAIN - avatar
+ 4
Okay 👍👍
16th Oct 2020, 8:41 AM
HARDIK JAIN
HARDIK JAIN - avatar
+ 2
If you write mixed code of html and php together you have to save your webside code on a server with the end *.php for example mywebsite.php then will be all work. To keep the extension *.html (htm), the server must be configured accordingly, what is unfortunatelly not easy.
16th Oct 2020, 8:40 AM
JaScript
JaScript - avatar
+ 2
You can use HTML code inside PHP file, but not vice versa.
28th Oct 2020, 11:44 AM
KygekDev
KygekDev - avatar