Write HTML in PHP

WBOY
Release: 2016-08-08 09:25:52
Original
1339 people have browsed it
   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

                    }
Copy after login
, 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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!