You need javascript/PHP or any other languages.
To do in javascript .. First make provide id or name attribute to you input fields and other form elements. create a function which will be called by submitting form. Collect values from form fields to variables
var name = document.getElementById("id_attribute_value").value; //Collects value using id attribute
var name = document.getElementByName("name_attribute_value").valueOf; //Collects value using name attribute
now to display values (say in textarea)
document.getElementById("id_attribute").value = name + punishment + other_vars; //This will put all the collected values in that textarea
To do something like this in php Follow up this link http://www.w3schools.com/php/php_form_validation.asp