538reads

Question about sessions and pagesview story

I was browsing around for tutorials that use a PHP session to insert an ID into a form and use it to check for accidental repeated submission of a form. All of these tutorials seem to set the form action to a separate page on which they place the form-processing part of the PHP, which I don't do. This implies that this method cannot be used when the form action points to the same page: the usual lack of info in tutorials leaves me unsure whether that is the case or not. If so, is there a simple alternative to sessions? (It has to be simple and clear. Ideally, I would like to find

The content of this field is kept private and will not be shown publicly.
To prevent automated spam submissions leave this field empty.
CAPTCHA
Human?
Image CAPTCHA
Enter the characters shown in the image.