September 2024
Intermediate to advanced
743 pages
27h 48m
English
Let’s look at everything we’ve learned through an example. Dynamic websites never work without a form. In the classic case, data submitted from a form is sent to a PHP script, which then handles the processing. In Chapter 2, Section 2.2.6, we created a kind of registration form. We want to use the code from Listing 2.16 and process the data obtained from it via PHP and then send this processed data via email.
The first thing to do is prepare the form, as described in Chapter 2. The only thing that needs to be changed is the action attribute of the <form> element. The value must point to a processing PHP script or to itself. We assume that the HTML form is located ...
Read now
Unlock full access