This is because your HTML code is directly output to the web page without being executed by the php engine.
The browser has a fault-tolerant mechanism and will annotate this, so the structure of the web page will be corrected to a certain extent.
What you have to do is to deploy a PHP execution environment, such as lamp.
If you see the tab above, you may be using a template engine. You can check whether the relevant configuration supports native PHP tags.
Your description is very unclear, and the other answers above are also possible.
http://www.cnblogs.com/deityd...
Your template engine configuration does not enable php_tag support, or it is not used in this way.
Try changing the file name to Userindex.php
Use this format when writing php in html.