this is my php code i am trying to get out put on same page but now out put is beng shown and there is no error is being shown also. can you help me enter image description here
<html>
<body>
<form action="try.php" method="POST">
<input type="text" name="txtname">
<input type="text" name="txtage">
<input type="submit" value="send" name="submit">
</form>
<?php
if(isset($_POST['txtname']) && isset($_POST['txtage'])){
$text=$_POST['txtname'];
$age=$_POST['txtage'];
echo $text;
echo $age;
}
?>
</body>
</html>