Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Back Back NOOOO

by ehdonhon (Curate)
on Aug 10, 2002 at 00:06 UTC ( [id://189114]=note: print w/replies, xml ) Need Help??


in reply to Back Back NOOOO

Your options:

  • Use a session based system. Keep track of the last page each session was on. And then:
    • Encode both the source and destination in your URLS. If the source is wrong, you know something happened, or:
    • Keep a list of pages that may be accessed by each page. When somebody requests a page, make sure that it is valid from the last visited page.
  • Encode a unique request ID with every page you server. If you see the same request ID twice, you know somebody made two requests from the same page. Or encode a unique key in your URLs such that each URL is only valid once.

UPDATE I guess this was post #200 for me. I thought I was going to come up with something meaningful for this special number, but I guess I'll wait till 250 now...

Replies are listed 'Best First'.
Re: Re: Back Back NOOOO
by TexasTess (Beadle) on Aug 10, 2002 at 00:19 UTC
    I should have been more specific. I have local anchor tags in an html file that are dumped into main by the CGI script. These tags are dynamically created and link to each entry that has been made on the page. There is also an action button if a user wants to add an entry. If they click a "link" to jump to an entry, then use the back button to go back to the top of the page..then click the link to jump to a different entry...the button for adding an entry is activated and the add an entry form is presented.
    update: I would like to know how to either stop them from using the back button to get back to the top of the page...or stop the second click from activating the call to the add entry form..

    TexasTess
    "Great Spirits Often Encounter Violent Opposition From Mediocre Minds" --Albert Einstein

      So if they click on link #1, click back, and then click on link #2, they are not being sent where #2 should have sent them? Sounds more like a bug than a design issue.

        So if they click on link #1, click back, and then click on link #2, they are not being sent where #2 should have sent them?
        Yep, you got it, the link says <a href="#2"> 2 </a> but it acts as if the "add an entry to this page" button has been clicked and the Script presents the form for adding an entry.

        TexasTess
        "Great Spirits Often Encounter Violent Opposition From Mediocre Minds" --Albert Einstein

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://189114]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-25 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found