-
Notifications
You must be signed in to change notification settings - Fork 0
/
testprint.php
35 lines (34 loc) · 884 Bytes
/
testprint.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
<!DOCTYPE HTML>
<html>
<head>
<title>Print page</title>
<?php
session_start();
include("config.php");
$sqlGetPSName = "SELECT PS_ID, PS_Name FROM printing_shop ORDER BY PS_Name";
$dataRetrievePSName = mysqli_query($dbcon,$sqlGetPSName);
?>
</head>
<body>
<form id = "print" action="sessiontest.php" method="post">
<table>
<tr>
<td> Printing Shop: </td>
<td> <select name="pname">
<?php
$i = 0;
while($psname = mysqli_fetch_row($dataRetrievePSName)){
echo "
<option value = $psname[0]> $psname[1] </option>
";
}
?> </select>
</td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Print" name="printnow" id="printnow "></td>
</tr>
</table>
</body>
</html>