On the email I'm getting special characters instead of inches. I see it's happening on the curly inch marks (This: 3†instead of 3"). What's the best way to take care of inches (or all special characters) on this page. My email page (block.php) looks like.
<?php
date_default_timezone_set('America/New_York');
?>
<?php
$remove = array();
$remove[] = "";
$remove[] = "x";
$remove[] = "y";
$remove[] = "Password";
$remove[] = "Confirm_Password";
$remove[] = "RichRegistration_submit";
$remove[] = "dropdown";
//$remove[] = "dropdowncs";
//$remove[] = "dropdownws";
//$remove[] = "dropdownft";
$remove[] = "ssc";
//$remove[] = "dropdownssh";
//$remove[] = "dropdownrmb";
//$remove[] = "dropdownir";
//$remove[] = "dropdownbr";
//$remove[] = "dropdownehr";
//$remove[] = "dropdownnra";
//$remove[] = "dropdowndra";
//$remove[] = "dropdownisa";
//$remove[] = "dropdownsct";
//$remove[] = "dropdownus";
//$remove[] = "dropdownrs";
//$remove[] = "dropdowncma";
$removeBegins = array();
$removeBegins[] = "Security";
$removeEnds = array();
$removeEnds[] = "_x";
$removeEnds[] = "_y";
$removeIncludes = array();
$removeIncludes[] = "Security";
$CoreSupportGroup = $_POST["CoreSupportGroup"];
//if ((($_POST["CoreSupportGroup"]) == '') || (empty($_POST["CoreSupportGroup"]))) {
if ((($CoreSupportGroup) == '') || (empty($CoreSupportGroup))) {
$remove[] = "CoreSupportGroup";
}
if (!isset($_POST["dropdowncs"])) {
$remove[] = "csFormName";
$remove[] = "lbx1";
}
if (!isset($_POST["AntiWrinkleGroup_0"])) {
$remove[] = "wsFormName";
$remove[] = "lbx2";
}
if (!isset($_POST["AntiWrinkleGroup_1"])) {
$remove[] = "abrFormName";
$remove[] = "lbx3";
}
if (!isset($_POST["AntiWrinkleGroup_2"])) {
$remove[] = "fbrFormName";
$remove[] = "lbx4";
}
if (!isset($_POST["AntiWrinkleGroup_3"])) {
$remove[] = "srFormName";
$remove[] = "lbx5";
}
if (!isset($_POST["AntiWrinkleGroup_4"])) {
$remove[] = "apFormName";
$remove[] = "lbx6";
}
if (!isset($_POST["FOXTrimAwayGroup_0"])) {
$remove[] = "sttrimFormName";
$remove[] = "lbx7";
}
if (!isset($_POST["FOXTrimAwayGroup_1"])) {
$remove[] = "smFormName";
$remove[] = "lbx8";
}
if (!isset($_POST["FOXTrimAwayGroup_2"])) {
$remove[] = "frtrimFormName";
$remove[] = "lbx9";
}
if (!isset($_POST["FOXTrimAwayGroup_3"])) {
$remove[] = "fmrFormName";
$remove[] = "lbx10";
}
if (!isset($_POST["FOXTrimAwayGroup_4"])) {
$remove[] = "tcFormName";
$remove[] = "lbx11";
}
if (!isset($_POST["dropdownssc"])) {
$remove[] = "sscFormName";
$remove[] = "lbx12";
}
if (!isset($_POST["dropdownssh"])) {
$remove[] = "sshFormName";
$remove[] = "lbx13";
}
if (!isset($_POST["dropdownrmb"])) {
$remove[] = "rmbFormName";
$remove[] = "lbx14";
}
if (!isset($_POST["dropdownir"])) {
$remove[] = "irFormName";
$remove[] = "lbx15";
}
if (!isset($_POST["dropdownbr"])) {
$remove[] = "brFormName";
$remove[] = "lbx16";
}
if (!isset($_POST["dropdownehr"])) {
$remove[] = "ehrFormName";
$remove[] = "lbx17";
}
if (!isset($_POST["dropdownnra"])) {
$remove[] = "nraFormName";
$remove[] = "lbx18";
}
if (!isset($_POST["dropdowndra"])) {
$remove[] = "draFormName";
$remove[] = "lbx19";
}
if (!isset($_POST["dropdownisa"])) {
$remove[] = "isaFormName";
$remove[] = "lbx20";
}
if (!isset($_POST["dropdownsct"])) {
$remove[] = "sctFormName";
$remove[] = "lbx21";
}
if (!isset($_POST["dropdownus"])) {
$remove[] = "usFormName";
$remove[] = "lbx22";
}
if (!isset($_POST["dropdownrs"])) {
$remove[] = "rsFormName";
$remove[] = "lbx23";
}
if (!isset($_POST["dropdowncma"])) {
$remove[] = "cmaFormName";
$remove[] = "lbx24";
}
?>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Block Template</title>
<style type="text/css">
* {
font-size: 20px !important;
color: black !important;
}
</style>
</head>
<body style="background-color: #fff">
<div id="background" style="font-family: 'Times New Roman', Times, serif; background-color: #eee; padding: 20px; text-align: center; color: #000000; font-size: 16px; width:97%">
<div id="page" style="padding: 10px; width: 600px; margin: 0 auto; text-align: left; background-color: #fff; border: 1px solid #C0C0C0;">
<div id="header" style="padding: 0px 0px 10px 0px;">
<h1 style="padding: 0px; margin: 0px 0px 2px 0px; font-size: 16px; text-decoration: none; font-weight: bold; color: #666;">QUOTE REQUEST FORM</h1>
</div>
<div id="contentWrapper" style="padding: 0px 2px 10px 2px;">
<div id="contentHeader" style="border: 1px solid #DDD; border-right-width: 0px; border-left-width: 0px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<th style="font-family: 'Times New Roman', Times, serif; font-size: 16px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; color: #666; font-weight: bold;">Form Submitted</th>
<td style="font-family: 'Times New Roman', Times, serif; font-size: 16px; padding: 3px; border-left: 1px solid #DDD; color: #000000;"><?php $now = time(); ?><?php echo date("n-j-Y", $now); ?> | <?php echo date("g:i A T", $now); ?></td>
</tr>
</table>
</div>
<div id="content" style="padding: 0px 10px 10px 0px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<th style="font-family: 'Times New Roman', Times, serif; font-size: 16px;width: 134px; height:1px; font-size: 1px; line-height: 1px;"> </th>
<td style="font-family: 'Times New Roman', Times, serif; font-size: 16px;height:1px; font-size: 1px; line-height: 1px; border-left: 1px solid #DDD;"> </td>
</tr>
<?php
if(!empty($_POST)) {
foreach( $_POST as $pkey => $pval ){
if (!RemoveValue($pkey,$remove,$removeBegins,$removeEnds,$removeIncludes)) {
if (strpos($pkey,"lbx") === 0) $pkey = "";
if (strpos($pkey,":") === 0) $pkey = "";
if (get_magic_quotes_gpc()) $pval = stripslashes((is_array($pval)?implode(", ",$pval):$pval));
if ($pval) {
?>
<tr valign="top">
<th style="font-family: 'Times New Roman', Times, serif; font-size: 16px;width: 134px; text-align: right; padding: 3px 10px 3px 3px; color: #666; font-weight: bold;"><?php echo(str_replace("_"," ",$pkey)); ?>:</th>
<td style="font-family: 'Times New Roman', Times, serif; font-size: 16px;padding: 3px; border-left: 1px solid #DDD; color: #000000;"><?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))); ?></td>
</tr>
<?php
}
}
}
}
?>
</table>
</div>
</div>
</div>
</div>
</body>
</html>
I found this online but I see there's already a str_replace in the code. ?
Thanks.