Single Quotes Change to Double Quotes
If you enter a single quote in any of the form fields - Example O'neil the single quote becomes a double quote in the email message. So when I receive the email the name appears as this O"neil
If you enter a single quote in any of the form fields - Example O'neil the single quote becomes a double quote in the email message. So when I receive the email the name appears as this O"neil
try adding the following code at line 1 of your page, this will convert the posted information to html entities. the single quote will become '& #039;'
<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $key => $val) {
$_POST[$key] = htmlspecialchars($val, ENT_QUOTES);
}
}
?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.