Hello,
I am trying to paste the following using the HTML button on the WYSIWYG editor on the 'Email Templates' tab:
After I hit update it turns this into:
Is there any way to fix this so that I can get it to not strip out the code?
Thanks!
I am trying to paste the following using the HTML button on the WYSIWYG editor on the 'Email Templates' tab:
<?php
if( $_POST['paymentMethod'] == "credit" )
{
$redirect = "https://pay.myhomepage.com";
echo "Thank you for your registration. You will recieve an email with your registration details.<br /><br />
<span style='font-size: 14px; font-weight: bold;'><a href=\"" . $redirect\ . "\">Click here</a> to continue.</span><br />You selected credit card as your payment type. You will be redirected to our payment gateway. Please be patient as this may take some time to load.";
}
else
{
$redirect = 'http://www.myhomepage.com';
echo "Thank you for your registration. You will recieve an email with your registration details.<br /><br />
<span style='font-size: 14px; font-weight: bold;'>Please <a href=\"" . $redirect\ . "\">click here</a> to continue to the Homepage.</span><br />";
}
?>
<h2>Payment Method: </h2>
<?php echo $_POST['payment']; ?><br />
<?php if ($_POST['checkAmount'] != NULL) {
echo "I will mail a check payable for this amount:"
;}
?>
<?php if( $_POST['payment'] == "credit" )
{
echo "<a href=\"" . $redirect\ . "\">Click here</a> to be redirected to our payment gateway. Please be patient as this may take some time to load.";
}
?>
<?php if( $_POST['payment'] == "company" )
{
echo "Please bill $" . $_POST['companyamount'] . " to Federal ID # " . $_POST['feinum'];
}
?>
After I hit update it turns this into:
<span style="font-size: 14px; font-weight: bold;"><a href="\">Click here</a> to continue.</span><br />You selected credit card as your payment type. You will be redirected to our payment gateway. Please be patient as this may take some time to load."; } else { $redirect = 'http://cepd.okstate.edu'; echo "Thank you for your registration. You will recieve an email with your registration details.<br /><br /> <span style="font-size: 14px; font-weight: bold;">Please <a href="\">click here</a> to continue to the CEPD Homepage.</span><br />"; } ?>
<h2>Payment Method:</h2>
<p><br /> Click here to be redirected to our payment gateway. Please be patient as this may take some time to load."; } ?></p>
Is there any way to fix this so that I can get it to not strip out the code?
Thanks!