Chapter 5

Forms, PHP, and Form Processing

When you surf the Web, from a desktop, laptop, notepad, or smartphone, information flows from servers to your browser. But the Web is much more than a one-way street. You can also enter information into the browser to be sent to the server or processed directly by JavaScript programs on the client side.

HTML provides a complete set of form and input elements to obtain user input and upload data, including files, to the server. A form element can specify a server-side program to receive and process the uploaded data and provide a response for the user. The Web would be a much poorer place without the ability to collect and process user input. In fact, e-business and e-commerce are dependent on the interactive ...

Get Dynamic Web Programming and HTML5 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.