✔ 最佳答案
佢顯示過期,係因為你用post既方法,佢要重新接收d data嘛
其實你呢個問題好多人都曾經遇過,最主要唔係form既問題,而係[上一頁]按鈕的問題,至於點樣去tackle呢個[back]按鈕的問題,其實都有好幾個方法,但係唔係個個方法都o岩每個網站用,你需要明白你想要既係咩目的/效果,詳細情形真係好長好長,響度篇幅有限我唔多講啦,但係你可以參考以下連結:
去明白get/post的背景操作方法:
http://www.cs.tut.fi/~jkorpela/forms/methods.html
理解back button的影響同如何對應
http://www.tonymarston.net/php-mysql/backbuttonblues.html
2007-04-19 07:48:18 補充:
突然醒起有個trick,可能你會o岩用,就係用intermediate processing scripts啦,呢個真係好駛好用,我平時都用慣佢,請睇例子:form既page: form.php<form action=”process.php” method=”POST”>…form既其他野 submit按鈕</form>
2007-04-19 07:48:39 補充:
intermediate page: process.php<?php header(’Location:
http://乜乜乜/end.php’);… form要process既野?>被redirected既page:end.php<html><p>最後黎跳到呢個page!</p></html>
2007-04-19 07:50:40 補充:
首先個form既資料會被送到process.php,process完d資料後,瀏覽者會被送到end.php,換句說話來說,瀏覽器只會知道process.php同end.php呢兩個pages,當你按back button/refresh button,佢就唔會知道中間要process果個page,所以唔需要再收data,咁就唔會出果個warning了唔知你明唔明我講乜,歡迎再問
2007-04-19 07:52:38 補充:
sorry,頭先打錯:瀏覽器只會知道process.php同end.php呢兩個pages應該係:瀏覽器只會知道form.php同end.php呢兩個pages