The Form
<FORM action="program.php" method="post">
<P class=MsoBodyTextIndent align="center">
<INPUT size=24 name="T1">
<INPUT type=submit value=Send name=B1>
</P>
</FORM>
The program.php
<? $xonn=mysql_connect("localhost","myuser","mypassword");
mysql_select_db("abc",$xonn);
$IP=${"REMOTE_ADDR"};
$xdate=date("Y-m-d ");
$sql ="INSERT INTO emailama(email,IP,date) VALUES('$T1','$IP','$xdate')";
$result=mysql_query($sql);
$subject="thanks!!";
$from_header="From: web@amigosdelosanimales.org";
$msg=" Hello !!!!!! bla bla bla bla bla b la";
mail($T1,$subject,$msg,$from_header);
echo "Thank you!",$T1;
?>
ACTIONS :
Show me "Thank you without $T1l"
Don't send the email (because can not read $T1)
Create one record in DB just with the Date (no email, no IP)
If I ask to print (echo) the IP , also can't do it.