<html>
<head>
<title> processing form</title>
</head>
<body>
<form action= "<?php $_SERVER['PHP_SELF']?>" method="get">
Enter Name<input type="text" name="t1">
<input type="submit" name="submit">
</form>
</body>
</html>
<?php
if(isset($_GET['submit']))
{
$na=$_GET['t1'];
echo strrev($na);
}
?>