瀏覽單個文章
嚐起來像雞
Major Member
 
嚐起來像雞的大頭照
 

加入日期: Nov 2004
您的住址: 高雄
文章: 276
解決了,非常感謝兩位大大,
把post變數清掉沒用,他會寫入空白值。

我的方法是設一個變數 $do = $_GET["do"]
發送表單的action則是變成<頁名>.php?p=<頁面碼>&do=new_reply
$do是"new_reply"的時候才讀取POST然後寫入資料,
寫完資料以後redirect回<頁名>.php?p=<頁面碼>,
不做導向的話,每次重新整理就好像按一次submit一樣。
__________________

It's when you start to become really afraid of death,
that you learn to appreciate life. [Leon]
舊 2007-01-16, 10:37 AM #4
回應時引用此文章
嚐起來像雞離線中