<form method="POST" action="<?php print $_SERVER["PHP_SELF"]; ?>">
<p><input type="text" name = "word"></p>
<p><input type="submit" name="Submit" value="Submit"></p>
<?php
$i = $_POST['word'];
echo strrev($i);
?>
gives me this error: Notice: Undefined index: word in C:\wamp\www\php\reverse.php on line 6 is there a solution?