faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

32 of 111 people (29%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How can I disable the back button from a form?

Mar 23rd, 2001 14:06
Ben Udall, Steve Litt, unknown unknown,


There is no way to disable a browser's back button. Though, you can 
make it harder with JavaScript:
http://www.developer.irt.org/script/311.htm
I would suggest writing the previous page to account for people 
pressing the back button instead of relying on JavaScript, which is a 
really bad idea.