我有一個非常基本的PHP的HTML頁面。我不知道爲什麼它不起作用。PHP代碼無法正常工作,無法找到語法錯誤
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="author" content="Robin Van Campen">
<meta name="description" content="Website showing XSS and HMAC" />
<meta name="keywords" content="html, security "/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="bootstrap.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="global.css" />
<link href="Resources/Icons/favicon.ico" rel="icon" type="image/x-icon" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<title>Example 2</title>
</head>
<body>
<div class="container">
<?php
echo "<p>name</p>";
?>
</div>
</body>
</html>
問題是,當我打開該網頁點擊一個表單按鈕,我得到這個在屏幕上。
name
"; ?>
我看不到我做錯了什麼。
是您的文檔文件.php還是.html?在** HTML **文件中使用** PHP **的 –
?你的服務器配置是什麼? –
*「PHP代碼無法正常工作」* ---更像***「PHP未安裝或配置不當」*** --- PHP已完成其工作。諮詢最可能的情況下的其他意見/答案。 –