Thanks again, that really helped, and I can see how it works if one just gets the info from one variable, but how does it work when there is a lot of info stored in the form, like in the second example I sent?
I have translated that form into english. It displays normally but the post action does not work - then again, I am not sure where or how to integrate the $_Post[xxx] into the output code. Thanks so much for your help, I really appreciate it.
best
Kat
here is the code, file saved as text1.php
<HTML>
<HEAD><title>Contact form</title></HEAD>
<BODY>
<?php
if (!$send && !$name) {
?>
<form method="post" action="<?php echo $PHP_SELF ?>">
<p>Name:
<input type="text" name="name" size="30">
</p>
<p>E-Mail:
<input type="text" name="email" size="30">
</p>
<p>Book evaluation: 1
<input type="radio" name="evaluation" value="1">
2
<input type="radio" name="evaluation" value="2">
3
<input type="radio" name="evaluation" value="3">
4
<input type="radio" name="evaluation" value="4">
5
<input type="radio" name="evaluation" value="5">
6
<input type="radio" name="evaluation" value="6">
</p>
<p>comment:
<textarea name="comment" cols="30" rows="5"></textarea>
</p>
<p>Favorite Topic:
<select name="choose">
<option value="PHP">PHP</option>
<option value="MySQL">MySQL</option>
<option value="JAVA">Java</option>
<option value="ASP">ASP</option>
</select>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Reset">
<input type="hidden" name="send" value="1">
</p>
</form>
<?php
} else {
echo "
the following data has been sent:<p>
<b>Name:</b> $name<br>
<b>E-Mail:</b> $email<br>
<b>Book evaluation:</b> $evaluation<br>
<b>comments:</b> $comment<br>
<b>favorite topic:</b> $choose
<p>
<form method='$_POST' action='$PHP_SELF'>
<input type='submit' name='Submit' value='any other comments?'>
</form>
</p>
";
}
?>
</BODY>
</HTML>