Correctly encode characters in a PHP mail form ("I'm" turns to be "I\'m")
- by Peanuts
Hello guys,
I'm testing a PHP mail form, a very barebones one, found here:
<?php
if(isset($_POST['submit']))
{
//The form has been submitted, prep a nice thank you message
$output = '<h3>Thanks for your message</h3>';
//Deal with the email
$to = 'mymail@mail.com';
$subject =…