Summary

If you’ve kept up so far, things should be getting exciting now. You have the tools to create truly sophisticated and interactive environments. There are still a few things missing, of course. Now that you can get information from the user, it would be nice to be able to do something with it—write it to a file, perhaps. That is the subject of the next hour.

Throughout this hour, you have learned how to work with the $_SERVER, $_POST, $_GET, $_REQUEST, and $_FILE superglobal arrays to acquire predefined variables, form input, and uploaded file information. You have also learned how to send raw headers to the client to redirect a browser. You have learned how to acquire list information from form submissions and how to pass information ...

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.