-
Notifications
You must be signed in to change notification settings - Fork 0
/
addmake.php
executable file
·34 lines (34 loc) · 932 Bytes
/
addmake.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
<?php
require "header.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Add Battery Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>
<body>
<form action="doaddmake.php" method="post" enctype="multipart/form-data">
<table>
<tr><td>Type</td><td><select name="type">
<?php
require_once "connect.php";
$conn = connect();
require_once "helpers.php";
showBatteryTypeOptions($conn);
$conn->close();
?>
</select></td></tr>
<tr><td>Theoretical Power</td><td><input type="text" name="nominal"></td></tr>
<tr><td>Brand Name</td><td><input type="text" name="brand"></td></tr>
<tr><td>Image</td><td><input type="file" name="image"></td></tr>
</table>
<input type="submit">
</form>
<p>
<a href="main.php">Back to Menu</a>
</body>
</html>