Home >Backend Development >PHP Tutorial >Write HTML in PHP
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='A.html'"/> </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.