Abstract
The Web is a brilliant illusion. When you visit a well-designed website, you get a great feeling of continuity, as though flipping through the pages of a book or a magazine. Everything fits together as a coherent entity. The reality is quite different. Each part of an individual page is stored and handled separately by the web server. Apart from needing to know where to send the relevant files, the server has no interest in who you are. Each time a PHP script runs, the variables exist only in the server’s memory and are normally discarded as soon as the script finishes. Even variables in the $_POST and $_GET arrays have only a brief lifespan. Their value is passed once to the next script and then removed from memory unless you do something with it, such as storing the information in a hidden form field. Even then, it persists only if the form is submitted.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 David Powers
About this chapter
Cite this chapter
Powers, D. (2014). Pages That Remember: Simple Login and Multipage Forms. In: PHP Solutions. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0635-5_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0635-5_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0636-2
Online ISBN: 978-1-4842-0635-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books