Below are some code snippets from the page (submit_case.php) that shows the confirmation, gives the opportunity to "Click here to make changes," then sends an email, which then logs to our database (complicated reasons for passing through email, but not relevant here).
if (
<snip>
$description == "" ||
<snip>
) {
<snip>
printf("<p><h1>Whoops!</h1> <p>You left one of the required fields blank or provided an invalid email address. These are <b><font color=#990000>required fields</font></b>. Please ");
<snip>
printf("<a href=\"index.php?confirm=yes&customer=yes&finalcheck=$finalcheck&fullname=$fullname&productKey=$productKey&email=$email&product=$product&company=$company&phone=$phone&OS=$OS&PPT=$PPT&version=$version&reason=$reason&otherTopic=$otherTopic&description=$description");
}
printf("\">go back</a>. <p>Your case will <b>not</b> be received until you do this.");
<snip>
<font color="#990000">Confirm the below details and submit your case.</font>
<?php
$description = htmlspecialchars($description, ENT_QUOTES);
$description = stripslashes($description);
<snip>
<form action="send_case.php" method="POST">
And here's what happens in send_case.php:
$send_address = "support@articulate.com";
<snip>
$message_body = "FROM: $name
<snip>
CASE DETAILS: $description";
mail($send_address,$subject,$message_body,"From: ".$email);
I'm guessing I should be using addslashes in here somewhere, right?
Thanks again for the assistance! I really appreciate it.
-Gabe