Paldo,
Please use [ php] and [ /php] (without spaces) for your code. It makes it much easier to read and the posts are shorter (in the browser)
Here is an idea (for your php code)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body>
<?php
$verified = $_REQUEST['v'];
echo "hello";
$todayis = date("d.m.Y") ;
print "Datum: $todayis<br /><br />";
print "1) My name is: <font color=\"red\">$textfield1. </font><br />";
print "2) I'm <font color=\"red\">$textfield2</font>years old<br />";
print "3) my comment is :<font color=\"red\"> $textarea1.</font><br />";
?>
<?php
$sendto = "myname@mydomain.ch";
$subject = "test form";
$headers="";
$headers .="test form\n\n";
$headers .="Datum: $todayis\n";
$headers .= "1) My Mame is: $textfield1. \n";
$headers .= "2) I'm $textfield2 years old. \n";
$headers .= "3) My comment is: $textarea1. \n";
?>
<form name="verify" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
If you need to change something: <button name="back" type="button" onclick="javascript: history.go(-1)">Go Back</button><br>
And if you are done: <input type="submit" name="submit" value="Submit" />
<input type="hidden" name="v" value="1">
</form>
<?php
if ($verified == "1") {
mail($sendto,$subject,$notes,$headers);
echo "good!";
}
?>
<p> </p>
<p> </p><p> </p></body>
</html>
I didn't see where you got the post data, but since you said that it was working, you must have GLOBAL_VARS setup or something to that effect. I would recommend using $POST, $GET, or $REQUEST (depending on what you need, $POST being for form data (method=post, etc).
Good Luck