I get the following error when submitting 4: Parse error: syntax error, unexpected T_STRING in /home/galaxy/public_html/STcalc/resources.php on line 42
If you want form mail, there's tons of packages (PEAR Mail, which uses SMTP for instance) that can be used in conjunction with form parsing. Using the default mail() function, assuming you safe guard it from attackers, spoofers and bots, and assuming you've also setup your servers mail client, can be used to submit to multiple email addresses. There are tons of guides on the Internet that can help you with that too.
Is this what you're asking for? You'd rather use PHP instead of mailto: for the form?
Why do you echo every line? Why not just write that as plain HTML?
This is how a typical mail form is setup:
HTML Page has a form on it, it POSTs (method) to the parser (action.) The parser takes the form data and makes sure it isn't illegal (things like, no slashes, mysql stuff; basically, you want to regex every field and make sure that the data coming in, can't be used to spoof or otherwise corrupt your webserver (look up php mail() security for more info.)) From there, it takes the data and sends it to the mail() function, which uses your servers mail client to send an email.
Also, I don't understand why you're escaping the single quotes for the post data; I would do this:
$from = $_POST['email'];
If you want to contain it in one PHP file, do this:
php stuff goes here
<form method="post" action="<?php echo $PHP_SELF;?>">
I just did a job like this recently, and I did exactly as I've stated here and it worked flawlessly. I of course, did quite a bit of security to make sure the form never touched any of the databases, or contained any characters or data that could disrupt any part of the web page. You can't secure everything 100%, but you can damn sure try.
That's because you're quoting those things. When you put any data within single quotes or double quotes, it becomes a string. Basically, you're hardcoding all of the values because you've transformed them into strings. If you want to take the post data you MUST reference it as such:
$subject = $_POST['category'];
Remove the single quotes around $_POST[''] and remove escaping.