Here I am still trying to get the simplest of forms working. I have removed and stripped down my php code to the bare basic. It still won't work. Am I missing something? I have the html of the form also here. Sorry for being such a pain.
--------------- php------------
<?
$recipient = "myemailaddress.com";
$subject=$_POST['subject'];
$name=$_POST['name'];
$comments=$_POST['comments'];
mail($recipient,$subject);
?>
------------------ --------------
html form:<html>
<head>
<title>Form</title>
</head>
<body>
<FORM action=form.php method=post>
<br>
Your Name:
<input type=text name=name>
<br>
Comments Here <TEXTAREA NAME="Comments" ROWS=5 COLS=40></TEXTAREA><BR>
<INPUT TYPE="SUBMIT" VALUE="Submit">
</FORM>
</body>
</html>http://ca3.php.net/manual/en/function.mail.php
bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])
so
you don't have subject in the form...
and you don't have the comment in the function mail...
$subject = 'Message from '.$name;
mail($recipient,$subject,$comment);
--------------- php------------
<?
$recipient = "myemailaddress.com";
$subject=$_POST['subject'];
$name=$_POST['name'];
$comments=$_POST['comments'];
mail($recipient,$subject);
?>
------------------ --------------
html form:<html>
<head>
<title>Form</title>
</head>
<body>
<FORM action=form.php method=post>
<br>
Your Name:
<input type=text name=name>
<br>
Comments Here <TEXTAREA NAME="Comments" ROWS=5 COLS=40></TEXTAREA><BR>
<INPUT TYPE="SUBMIT" VALUE="Submit">
</FORM>
</body>
</html>http://ca3.php.net/manual/en/function.mail.php
bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])
so
you don't have subject in the form...
and you don't have the comment in the function mail...
$subject = 'Message from '.$name;
mail($recipient,$subject,$comment);