Thanks for the help. I have been trying this script out on two different servers. One server simply gave a blank page. The other server is more friendly, that is, it actually tells me there was an error in PHP and tells me which line. As soon as I saw the line, I knew the problem. I called the DoStripSlashes function, but I forgot to include it.
I have put double quotes around my HTML as I needed the variables to be interpreted. Everything works fine now.. 😃
I do have another question, though. Is there a way I can just include the whole HTML part as a variable and have the slashes automatically put in?
For example, if the message body (that is, $message) is in HTML as such
<html>
<head>
<title>Message From Website</title>
</head>
<body>
<p align="center"><font face="Arial Black" size="2">Message From Website</font>
</body>
</html>
That is just a very small fragment of the HTML code. Basically, though, I would like to have it where the \ would automatically be input before each ". So I could just have all the coding of $message converted.