rendered paste body<html><head> <title>Building a Form</title></head><body><?php$search = $_GET["searcha"];$self=$_SERVER['PHP_SELF'];if ($search != NULL ){ ?>You searched for <?php echo $search"; ?><br />You could put more search results or things here<br /><br />Search again:<br /><form action="$_SERVER["PHP_SELF"]" method="GET"><label>Search: <input type="text" name="searcha" /></label><input type="submit" value="Go!" /> </form> <?php } else { ?><form action="$_SERVER["PHP_SELF"]" method="GET"><label>Search: <input type="text" name="searcha" /></label><input type="submit" value="Go!" /></form><?php } ?></body></html>