This is an old revision of the document!
<form method='post' action=''> <input type='text' name='search_keyword'> <input type='submit' name='search_button' value='Search'> </form>
<?php echo "<pre>"; print_r($_REQUEST); echo "</pre>"; ?>
<html>
<form method='post' action=''>
<input type='text' name='forename'>
<input type='submit' name='say_hello' value='Say hello'>
</form>
<?php
if(!empty($_REQUEST['forename'])) {
echo "Hello {$_REQUEST['forename']}";
}
?>
</html>
Note: We'll start with this, then explain how to make it not as full-of-errors :)