-
Notifications
You must be signed in to change notification settings - Fork 1
/
php_viewall.php
executable file
·42 lines (39 loc) · 1.1 KB
/
php_viewall.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<html>
<head>
<title>University of Arkansas Ichthyology Teaching Collection Database</title>
</head>
<style>
table, th, td{
border: 2px solid black;
border-collapse: collapse;
}
th, td{
padding: 6px;
}
</style>
<body>
<h3>Press button to view all specimens in the database:</h3>
<form action="php_viewall.php" method="post">
Sort by:<br>
<input type="radio" name="sortby" value="ITC" checked="checked"> ITC#<br>
<input type="radio" name="sortby" value="Orders"> Order<br>
<input type="radio" name="sortby" value="Family"> Family<br>
<input type="radio" name="sortby" value="Species"> Species<br>
<input name="submit" type="submit" >
</form>
<br><br>
<a href="index.html">Return to main page</a>
<br><br>
</body>
</html>
<?php
include '/home/mussmann/public_html/includes/php_db.php'; // put code location here
//------------------------------------------------------
// the main program
//------------------------------------------------------
if (isset($_POST['submit']))
{
// Call a function that does the insertion to mysql
viewall($_POST['sortby']);
}
?>