HTML and PHP
Is it possible to have PHP work within HTML? If I use PHP within a .html page, it doesn't work. If I use HTML within a .php page, it doesn't work either. Someone a solution, please?
1 Answer
1 year ago by Ivo Goyens
You can write PHP code to HTML but it will do nothing - it is just HTML. In fact it may case the HTML to be invalid.
You should be able to interleave PHP and HTML in php files.
Can you provide a non-working example of the latter?
1 year ago by petr