Home
Articles
Forums
Resources
Downloads
Search
Last Visit
Get Album Art
Embed Codes
Music Playlists
Music Search
Member Links
Login Form
Username: Password:
Login with username, password and session length

Forgot your password?
Support The Cause

Home arrow Articles arrow PHP Code Snippets arrow Browser Back Cache Control For Forms
Browser Back Cache Control For Forms PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Jason   
Jan 03, 2008 at 02:43 PM
This maintains form data when the browser's back button is used. It is helpful on multi-page forms in case you need to backup a step. Insert the following code into the top of your php document.

// maintain form data so back button can be used
header("Cache-control: private");



User Comments
Please login or register to add comments

Next>