The problem with this (the javascript history) is it bites on frames.

One thing you could do is

print("<a href=\"" . $HTTP_REFERER . "\">Go back</a>");

or some such. At least then you could do referer sanity checking to make 
sure you didn't dump the user somewhere nonsensical (if they've bookmarked 
something in the middle of your site.

Robert

At 10:37 AM 26/02/2001 +0545, Deependra B. Tandukar wrote:
>Greetings!
>
>Is there any equivalent code for (JavaScript) <a
>href=JavaScript:history-back(1)>Back Button</a> in php?
>
>This works as back button on the menu bar.
>
>Looking forward to hearing from you.
>
>regards,
>DT
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

Robert Gormley
[EMAIL PROTECTED]
http://distortedreality.net


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to