When using this code below it works sending message with the forename in the body of the email.
<HTML>
<HEAD></HEAD>
<BODY BGCOLOR="#4CB8CF" TEXT="FFFFFF">
<FONT face="tahoma" size="2">
<FORM method="post" action="formprocess.php">
Forename: <INPUT name="forename" /><BR /><BR />
Surname: <INPUT name="surname" /><BR /><BR />
Age: <INPUT name="age" /><BR /><BR />
Email: <INPUT name="email" /><BR /><BR />
<INPUT type="submit" name="submit" />
</FORM></FONT></BODY></HTML>
<?
$forname = $REQUEST['forename'] ;
$surename = $REQUEST['surname'] ;
$age = $REQUEST['age'] ;
$email = $REQUEST['email'] ;
mail( "f1sk@mydomain.com", "FORM RESULTS",
$forename, "From: $email" );
header( "Location: http://www.mydomain.com/thanks.html" );
?>
How would I make multiple fields appear in the body, eventually it will be around 20 when I get it to work, and if possible how do I format it in the email?
When I tried this it gave me errors:
mail( "f1sk@mydomain.com", "FORM RESULTS",
$forename $surname $age, "From: $email" );
Thanks in advance...