You can also extract the entire POST array using:
// Put this somewhere near the top after you send all of the headers.
extract($_POST);
Then you don't have to assign the variables. You can just echo them out or use them as needed...
In other words, you don't have to do this:
$var1 = $_POST["text1"];
echo $var1;
// All you need to do is this:
echo $text1;