Re: Going back with multiple submits to the same page

From: Date: Sat, 20 Jan 2007 14:26:18 +0000
Subject: Re: Going back with multiple submits to the same page
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-247444@lists.php.net to get a copy of this message
At 8:43 PM +0100 1/18/07, Otto Wyss wrote:
Paul Novitski wrote:
At 1/15/2007 01:52 PM, 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?
What you're suggesting doesn't sound easy.
I know, but what's a better way to to go back?
Apparently you didn't get/read my post -- try: 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. As for how to keep your entries "sticky", then I would look to sessions. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#247444) next »