© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. SimonAn Introduction to PHP https://doi.org/10.1007/979-8-8688-0177-8_3

3. Email and Form Processing

Mark Simon1  
(1)
Ivanhoe VIC, VIC, Australia
 

One thing you’ll often do in PHP is use it to process data from the user. Later, we’ll be sending data in the form of images and text to be stored in a database. In this chapter, we’ll send data to be sent on as an email.

In the past, websites included links to email addresses, and some still do. However, that proved to be an invitation to spammers who were always on the lookout for legitimate email addresses. It also made it more difficult to control what sort of email was being sent.

In this contact form, we’re ...

Get An Introduction to PHP : Learn PHP 8 to Create Dynamic Websites 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.