Re: [請益] 無法宣告一個區塊寫php的內容

看板PHP作者時間16年前 (2007/10/06 01:29), 編輯推噓2(203)
留言5則, 3人參與, 最新討論串2/2 (看更多)
※ 引述《pinkisme ()》之銘言: : 在一個頁框組裡,分成上下兩個部分, : 上面的網頁沒辦法以<??>讓我寫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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5" /> <title>無標題文件</title> </head> <body> <form action="test_5.php" method="post" name="form1" target="mainFrame" id="form1"> <input type="text" name="username" /> <input type="submit" name="Submit" value="搜尋" /> </form> </body> </html> 下面的網頁: <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5" /> <title></title> </head> <body> <? echo $_POST['username']; ?> </body> </html> 我是以dreamweaver來寫,上面的網頁不能用<??>寫 不會變色,不曉得是為什麼? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.156.75

10/06 01:34, , 1F
<?php
10/06 01:34, 1F

10/06 01:36, , 2F
上面的網頁沒看到php語法 另外你有把他存成.php嗎....?
10/06 01:36, 2F

10/06 02:17, , 3F
回一樓,我有試<?php 不過不行
10/06 02:17, 3F

10/06 02:18, , 4F
我本來要寫,不過因為寫了不會變色,也不能跑所以就沒寫
10/06 02:18, 4F

10/06 02:18, , 5F
我也有存成.php的檔案@@"
10/06 02:18, 5F
文章代碼(AID): #171dHlsY (PHP)
文章代碼(AID): #171dHlsY (PHP)