Example #1
0
"?>
			<label for="query"> Search</label>
			<input type="text" name="query" id="query" value="<?php 
if (isset($_GET['query'])) {
    echo $_GET['query'];
}
?>
" />
			<input type="submit" id="submit" />
		</form>
		<h4><a href="new.php">New Book</a></h4>

 		<table>
			<tr>
				<th>Title</th>
				<th>Author</th>
				<th>Publisher</th>
				<th>ISBN #</th>
				<th colspan="3"></th>

			</tr>
				<?php 
if (isset($_GET['query'])) {
    $collection->show_books($_GET['query']);
} else {
    $collection->show_books($query);
}
?>
		</table>
	</body>
</html>