I took the code that you amended and placed it in the file, and it didn't work at first. I feel kinda dumb, because after stepping back from it for a little bit, then looking at it again, I found the underlying cause of the problem. When I created the ISSET statement for the Name variable, I copied and pasted it to create the other variables.
<?php
// if it is set, convert the post array item
// and assign it's value to a variable:
if(isset($_POST['Name'])) {
$name = trim($_POST['Name']);
}
if(isset($_POST['emailaddress'])) {
$name = trim($_POST['EmailAddress']);
}
if(isset($_POST['topic'])) {
$name = trim($_POST['Topic']);
}
if(isset($_POST['feedback'])) {
$name = trim($_POST['Feedback']);
?>
In the code above, the variable $Name is set. After I copied and pasted it, I changed the $_POST portions to reflect the other variables that I needed, but failed to actually change the variable $Name to reflect the other variables. Basically, I had everything declared to one variable.
The code should look like this.
<?php
// if it is set, convert the post array item
// and assign it's value to a variable:
if(isset($_POST['Name'])) {
$Name = trim($_POST['Name']);
}
if(isset($_POST['EmailAddress'])) {
$EmailAddress = trim($_POST['EmailAddress']);
}
if(isset($_POST['Topic'])) {
$Topic = trim($_POST['Topic']);
}
if(isset($_POST['Feedback'])) {
$Feedback = trim($_POST['Feedback']);
}
?>
It's fixed and working now, and I really appreciate your help.
Thanks.