-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
86 lines (80 loc) · 2.56 KB
/
index.php
File metadata and controls
86 lines (80 loc) · 2.56 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Registration Form</title>
<link
href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="container">
<div class="design">
<div class="pill-1 rotate-45"></div>
<div class="pill-2 rotate-45"></div>
<div class="pill-3 rotate-45"></div>
<div class="pill-4 rotate-45"></div>
</div>
<div class="login-box">
<h2>Form</h2>
<form action="connect.php" method="POST" enctype="multipart/form-data">
<div class="user-box">
<input type="text" id="name" name="name" required />
<label>Name</label>
<p id="nameError" class="error-message"></p>
</div>
<div class="user-box">
<input
type="number"
id="age"
name="age"
min="0"
max="150"
required
/>
<label for="age">Age</label>
<p id="ageError" class="error-message"></p>
</div>
<div class="user-box">
<input
type="number"
id="weight"
name="weight"
min="0"
max="1000"
required
/>
<label for="weight">Weight</label>
<p id="weightError" class="error-message"></p>
</div>
<div class="user-box">
<input type="text" id="email" name="email" required />
<label>Email</label>
<p id="emailError" class="error-message"></p>
</div>
<div class="user-box">
<input type="file" id="pdfFile" name="pdf_file" accept=".pdf" />
<label for="pdfFile">Upload PDF</label>
<p id="pdfFileError" class="error-message"></p>
</div>
<div href="#" id="uploadButton" onclick="return uploadFile()">
<span class="ri-upload-line"></span>
<span>ReviewPDF</span>
</div>
<button type="submit" onclick="return validateForm()">
<span></span>
<span></span>
<span></span>
<span></span>
Submit
</button>
</form>
</div>
</div>
<script src="index.js"></script>
</body>
</html>