+ 10
How to add PHP code into HTML code
Please tell me
6 odpowiedzi
+ 2
In this code you can see live how to add PHP into HTML code:
https://code.sololearn.com/wdMg5lB9T43K/?ref=app
+ 4
I have tried but I am not able to get the output
+ 4
Okay 👍👍
+ 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.
+ 2
You can use HTML code inside PHP file, but not vice versa.
+ 1
Search your question before asking ✍
https://www.sololearn.com/discuss/2289779/?ref=app
https://www.sololearn.com/discuss/1760600/?ref=app
https://www.sololearn.com/discuss/844376/?ref=app
https://www.sololearn.com/discuss/2370417/?ref=app
https://www.sololearn.com/discuss/67783/?ref=app
https://www.sololearn.com/discuss/2471603/?ref=app
https://www.sololearn.com/discuss/488446/?ref=app
https://www.sololearn.com/discuss/1737878/?ref=app