Re: Going back with multiple submits to the same page
| From: | tedd | Date: | Tue, 16 Jan 2007 14:54:32 +0000 |
| Subject: | Re: Going back with multiple submits to the same page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247152@lists.php.net to get a copy of this message | ||
At 10:52 PM +0100 1/15/07, Otto Wyss wrote:
When values are entered on one of my page I submit the result back to the same page (form action=same_page). Unfortunately each submit adds an entry into the history, so history back doesn't work in a single step. Yet if the count of submits were known I could use goto(n). What's the best way to get this count? PHP or Javascript? O. WyssWyss: Considering that this is client-side (i.e., history), I would look to javascript, namely: location.replace('<whatever>'); The location object has two methods: a) reload; b) replace. This is where the back button get's it's value. Replace that value and I think you'll find a solution, or at least that's where I would look. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com