Hour 10. Working with Forms
What You’ll Learn in This Hour:
How to get and use server variables
How to access information from form fields
How to work with form elements that allow multiple selections
How to create a single document that contains both an HTML form and the PHP code that handles its submission
How to save state with hidden fields
How to redirect the user to a new page
How to build HTML forms that upload files and how to write the PHP code to handle them
Until now, all the examples in this book have been missing a crucial dimension. You can set variables and arrays, create and call functions, and work with objects. All this work is meaningless if users can’t reach into a language’s environment to offer it information. In this hour, you ...
Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.