Re: Going back with multiple submits to the same page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. Wyss

Wyss:

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux