[問題] html加入php
有一個網站我不太了解他是如何設計的
http://education.smartreseller.cn/index.html
這網站是html的格式可是,卻在前面崁入PHP
<?php
session_start();
require_once("xxx.php")
require_once("xxx.php")
.....
中間都是php的語法
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="" rel="nofollow">http://www.w3.org/1999/xhtml">
最後從這邊接下去才是javascript+htm(其他原始碼可以右鍵顯示原始碼都看的到)
問題在於說為什麼html可以寫php語法在裡面呢?
如果沒作用的話按鈕沒加入額外的網頁傳送或者JavaScript去驗證的話怎麼還可以
正常登入?
想請各位可以的話解說一下流程,用了幾天被這個邏輯搞的有點亂 感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.105.97
推
08/17 16:59, , 1F
08/17 16:59, 1F
→
08/17 17:00, , 2F
08/17 17:00, 2F
→
08/17 17:00, , 3F
08/17 17:00, 3F
→
08/17 17:00, , 4F
08/17 17:00, 4F
推
08/17 17:12, , 5F
08/17 17:12, 5F
推
08/17 18:22, , 6F
08/17 18:22, 6F
推
08/17 19:04, , 7F
08/17 19:04, 7F
→
08/17 19:05, , 8F
08/17 19:05, 8F
→
08/18 02:48, , 9F
08/18 02:48, 9F
→
08/18 02:49, , 10F
08/18 02:49, 10F
→
08/18 02:49, , 11F
08/18 02:49, 11F