|
-
Dec 19th, 2002, 04:55 AM
#1
Thread Starter
Fanatic Member
expire page views
how can i expire page views so that a user cannot come back to a particular page such as a form after being processed into a database?
Thanks! Newbi here...
-
Dec 19th, 2002, 10:12 AM
#2
Frenzied Member
jsut send them to somewhere alse after they complete the form.
-
Dec 20th, 2002, 01:41 AM
#3
Thread Starter
Fanatic Member
Thats not propper. Because the user can just come back and re-submit the form... the page has to expire.. thats the whole purpose behind expiring page views.. just sending the user some place wont do it.
-
Dec 20th, 2002, 10:00 AM
#4
Frenzied Member
when you figure out how to expire a page you let me know..... hence I have never seen it.
and it is proper to send them to a thank you page or something. and what would the purpose be to go back and submit the form again?
-
Dec 20th, 2002, 11:41 AM
#5
Member
expire
just do a beensubmitted.. or send a cookie.. somthing such as this
<?
if ($BeenSubmitted) {
print ("You have arleady submitted this page... please bug off");
}
else {
//put your code here
?>
<INPUT TYPE=submit NAME="SUBMIT"
VALUE="Submit!"
<?
}
?>
<INPUT TYPE=HIDDEN NAME=BeenSubmitted VALUE=TRUE>
Somthing along those lines might work for what you need.
Sometimes the simplest things are the hardest...
-
Jan 9th, 2003, 02:52 AM
#6
Hyperactive Member
Originally posted by nkad
Thats not propper. Because the user can just come back and re-submit the form... the page has to expire.. thats the whole purpose behind expiring page views.. just sending the user some place wont do it.
If you are refering to the 'This page has expired' message that Internet Explorer displays, it is due to your browser security settings, being set to NOT automatically resend form data to the server.
Basically, If you fill in a form, and click submit and a page is displayed, if you move away from that page, and click back, Internet Explorer, will not resend the form data to the server, and instead displays that message. (If you press F5, or refresh) it resends the data, and displays the page.
-
Jan 9th, 2003, 11:39 AM
#7
Frenzied Member
it also has to do with the session_cache_limit in php too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|