here’s a cut and paste from yet another tutorial I TRIED learning from on kirupa:
<?
//------------------------------------------------
// File: ‘phpmail.php’
// Func: using mail();
//------------------------------------------------
$Subject = “Test E-mail”;
$toEmail = "yourEmail@somewhere.com";
if(submit)
{
mail($fromEmail, $Subject, $nMessage."
From: “.$fromName.”<".$fromEmail.">");
}
?>
<html>
<head>
<title>Mail Tutorial</title>
</head>
<body bgcolor="#FFFFFF">
<form method=“post” action="<? echo($PHP_SELF) ?>">
Your E-mail:
<input type=“text” name=“fromEmail” size=“25”>
Your Name: <input type=“text” name=“fromName” size=“25”>
Your Message:
<textarea cols=“50” rows=“5” name=“nMessage”>Your Message Here…
What happens when you paste this into a page and open the page on a php-enabled server?
nothing. why?
Because there is no “submit” …anywhere. no button.
I can’t say enough about what this kind of thing (the second I’ve found and I’ve only been a member for a few months) does to the beginners you’re attempting to teach.
PLEASE!!! =—>>>>>PROOFREAD YOUR TUTORIALS OR DONT POST THEM AT ALL