看板 PHP 關於我們 聯絡資訊
灌了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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="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
HuangJC :為什麼光是測試,程式就這麼大呢?目的簡單程式要短呀~ 04/28 04:11
HuangJC :<?php echo'test' ?> 這樣會不會動? 04/28 04:11
ybite :$_POST['aaa'] 04/28 04:15
ybite :請養成用$_GET和$_POST的好習慣 04/28 04:15
ChengTing :我用測是最主要的原因是key in資料進不去mysql 04/28 04:45
ChengTing :可是我朋友用同樣的檔案都行...為什麼呢... 04/28 04:47
ybite :你是「資料庫有寫進去,但是資料內容是空白」 04/28 11:17
ybite :還是「資料完全寫不進去」? 04/28 11:17
ybite :如果是前者,檢查你有沒有改成$_GET、$_POST 04/28 11:17
ybite :如果是後者,檢查MySQL設定(有沒有開Strict Mode?) 04/28 11:18
ChengTing :我把它裝到XP 現在就好了耶...真奇妙 謝謝各位囉 04/29 23:20