# Another tutorial Error

**URL:** <https://forum.kirupa.com/t/another-tutorial-error/63093>\
**Category:** Uncategorized\
**Created:** [September 2, 2004, 10:35pm UTC](https://forum.kirupa.com/t/another-tutorial-error/63093 "2004-09-02T22:35:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![meatcake](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@meatcake](https://forum.kirupa.com/u/meatcake)\
**Post date:** [September 2, 2004, 10:35pm UTC](https://forum.kirupa.com/t/another-tutorial-error/63093/1 "2004-09-02T22:35:16Z")

</div>

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
