How can we print the data from our form ? by admin | Jun 1, 2010 | PHP | view plaincopy to clipboardprint? Hi <?php echo htmlspecialchars($_POST[‘name’]); ?>. You are <?php echo (int)$_POST[‘age’]; ?> years old. A sample output of this script may be: Hi Joe. You are 22 years old.