Re: Go Back Problem

From: Date: Thu, 02 Dec 2004 05:07:40 +0000
Subject: Re: Go Back Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203320@lists.php.net to get a copy of this message
On Thu, 2 Dec 2004 09:58:46 +0800, Cyrus <cyrus_chan@maxmarket.com.hk> wrote:
Dear All, I have a problem of back to the previous page in php..... I need to create a form let people to fill in .It can let user to preview the form, if information is not correct , user can back to previous page and correct it, I have used the javascript : OnClick='history.go(-1)' and OnClick='history.back()' in php , but it can not works....pls help me. Thanks and Regards, Cyrus Chan
This is a browser issue. For some reason, most browsers interpet 'back' as 'reload the previous page' rather than 'go back to where the user was', which results in the information filled into forms being nuked. One possible workaround for this is to skip the back stage, thereby removing the chance for the data to be lost. On the preview page, just include the form, so that they can just make the changes there. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ http://www.smempire.org

« previous php.general (#203320) next »