Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Back Button Issues.

Status
Not open for further replies.

rdyoll

Technical User
Joined
Aug 11, 2003
Messages
39
Location
US
I'm trying to come up with a Perl back button in my scripts. I know using the referer will produce this, and generally suits me fine, but sometimes I want to return to the prior invocation of my script and retain the exact state it was in. So, using the self_url() returns the current state of the page...not the prior one. I know I can use javascript (history.back()...etc, but, if it's possible to use perl, I'd like to see.
 
For you to send the client to the last page they visited, they'd have to tell you where they were. In short, there's no way to guarantee that. Client-side Javascript has a better chance, but that can be disabled in any respectable modern browser. I could be wrong, but I don't think there's a reliable way to perform that bit of interface fluff. Browsers have built-in back buttons if the user wants to retreat from your website into their history. :-)

________________________________________
Andrew - Perl Monkey
 
...thank you, icrf, for your response. I was just curious.
 
i never tried this but you could do this (i think)

print "Location: $ENV{'HTTP_REFERER'}\n\n";

---------------------------------------
If you helped... thx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top