View Full Version : Form values?
davidincincy
Mar 8th, 2004, 12:41 PM
I'm having some trouble with forms. If I fill out a form and set $name="David" and submit the form how long does that variable exist? Is it cleared after the form is submitted or when I close my browser? Any help would be great. Thanks.
paulcreedy
Mar 9th, 2004, 04:44 AM
For form values it exists while the user is on the page it was submitted to.
Page A send a form to page B.
Page B can use that value on that page, but if you move off that page the value is lost, unless you either resend the value onto page C, or put it into a session variable or cookie etc. A session value then exists while the browser is open. Close the browser and the session is lost.
Powered by vBulletin® Version 4.2.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.