Home  >  Article  >  Backend Development  >  Write HTML in PHP

Write HTML in PHP

WBOY
WBOYOriginal
2016-08-08 09:25:521313browse
   if($row["work_state"] == 0)
                    {
                        echo "your mission hasn't been completed,do you want to finish it right now?<br>  ";
                        ?>
                        <!DOCTYPE html>
                        <html>
                        <head lang="en">
                            <meta charset="UTF-8">
                            <title></title>
                        </head>
                        <body>
                            <input type="button" value="OK" onclick="location.href=&#39;A.html&#39;"/>
                        </body>
                        </html>
                        <?php

                    }
, please pay attention to surround the php code with ! Separate from HTML

The above is an introduction to writing HTML in PHP, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php word to htmlNext article:php word to html