[請益] 我的xampp1.7 & 1.6 無法顯示PHP

看板PHP作者 (格格)時間15年前 (2009/04/28 03:54), 編輯推噓2(209)
留言11則, 3人參與, 最新討論串1/1
灌了xampp 版面都正常 mySQL也可以用 但是 我不知道是環境有問題還是怎樣 (我是vista) 連最簡單的text bar都不行跳轉 舉例: 1.php <?PHP include ("conn.php"); //require_once('conn.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=utf-8" /> <title>無標題文件</title> </head> <body> <form id="form1" name="form1" method="post" action="2.php"> <input type="text" name="aaa" id="aaa" /> <input type="submit" name="button" id="button" value="送出" /> </form> <label for="label3"></label> </body> </html> <?PHP include ("disconn.php"); ?> 我用2.php去測它 <?php include ("conn.php"); echo $aaa; include ("disconn.php"); ?> 她完全不會印出我key出的字 (可我朋友可以 她不是用xampp) 真的不知道到底是甚麼問題 希望能幫我解答~~感謝感謝 XDD -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 128.243.253.217

04/28 04:11, , 1F
為什麼光是測試,程式就這麼大呢?目的簡單程式要短呀~
04/28 04:11, 1F

04/28 04:11, , 2F
<?php echo'test' ?> 這樣會不會動?
04/28 04:11, 2F

04/28 04:15, , 3F
$_POST['aaa']
04/28 04:15, 3F

04/28 04:15, , 4F
請養成用$_GET和$_POST的好習慣
04/28 04:15, 4F

04/28 04:45, , 5F
我用測是最主要的原因是key in資料進不去mysql
04/28 04:45, 5F

04/28 04:47, , 6F
可是我朋友用同樣的檔案都行...為什麼呢...
04/28 04:47, 6F

04/28 11:17, , 7F
你是「資料庫有寫進去,但是資料內容是空白」
04/28 11:17, 7F

04/28 11:17, , 8F
還是「資料完全寫不進去」?
04/28 11:17, 8F

04/28 11:17, , 9F
如果是前者,檢查你有沒有改成$_GET、$_POST
04/28 11:17, 9F

04/28 11:18, , 10F
如果是後者,檢查MySQL設定(有沒有開Strict Mode?)
04/28 11:18, 10F

04/29 23:20, , 11F
我把它裝到XP 現在就好了耶...真奇妙 謝謝各位囉
04/29 23:20, 11F
文章代碼(AID): #19zWrwDT (PHP)