' . "\r\n" . 'Reply-To: ' . $email; mail($emailTo, $subject, $body, $headers); $emailSent = true; } } ?>

Tutorials by ladycode

 

How to create a php/sql form that uploads to a database, has required fields, and sends you an e-mail to inform you of any changes.

Part 1: Familiarize yourself with the files.

Part 2: Adapt the files to your needs.

Part 3: Create a mySQL table in phpMyAdmin.

Files included (zipped): exampleForm.php, connect_to_mysql.php, thankYou.html