//handler.php if(isset($_POST['ok'])) { $name = trim(htmlspecialchars($_POST['name'])); $age = intval($_POST['age']); echo 'Name: '.$name.'; Age: '.$age; } ?>