Okay, I know, I'm a pitiful excuse for a human being, let alone someone who's meant to be able to dabble in a bit of PHP..... Nevermind.
Can anyone tell me how to add another field in my script so that the user can put in their email address but it wont be in the FROM field, just in the body of the message? The reason is, I've had to set up my script so that it can get through the server's filters in a very specific way....
This would make my month and I really mean that..
My script is:
<?
if (isset($_POST['Send'])) {
$to = 'oneaddress@someplace.co.uk';
ini_set("sendmail_from", " anotheraddress@somewhereelse.co.uk ");
$subject = $_POST['subject'];
$body= $_POST['message'];
mail($to,$subject,$body,$from);
echo "Thanks for your email";
} else {
?>
<form action="<? $PHP_SELF; ?>" method="post">
<input type="text" name="subject" value="<? echo $_POST['subject']; ?>">
<textarea name="message" value="<? echo $_POST['message']; ?>"></textarea>
<input type="text" name="email" value="<? echo $_POST[email]; ?>">
<input type="submit" name="Send" value="Send">
</form>
<? } ?>
I'm not completely at ease with how this all works yet, so help would be fantastic!