PHP within HTML not working using Flask
The PHP interpreter does not work the way you want to use it.You are calling the HTML (template) file from within a flask app, thus not using the PHP interpreter.You best stick to PHP with supportet templating eg. smarty, or go for Pythonic. Trying mixing the two is a bad idea.