-
Notifications
You must be signed in to change notification settings - Fork 0
/
Report_Form.html
81 lines (60 loc) · 2.9 KB
/
Report_Form.html
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
<!DOCTYPE html>
<html>
<head>
<title>Image Upload</title>
<link rel="stylesheet" href ="Report_Form.css">
</head>
<body>
<script>
<script>
// Function to check Whether both passwords
// is same or not.
function checkPassword(form) {
password1 = form.password.value;
password2 = form.c_password.value;
// If password not entered
if (password1 == '')
alert ("Please enter Password");
// If confirm password not entered
else if (password2 == '')
alert ("Please enter confirm password");
// If Not same return False.
else if (password1 != password2) {
alert ("\nPassword did not match: Please try again...")
return false;
}
// If same return True.
else{
alert("Data filled successfully!")
return true;
}
}
</script>
</script>
<div id="content">
<section class="fullcover">
<form method="POST" action="./Report_Form.php" enctype="multipart/form-data" onSubmit = "return checkPassword(this)">
<header>
<h1 class="heading">
REPORT ANTI SOCIAL ACTIVITY
</h1>
</header>
<p class="first_para"><b>UPLOADING EVIDENCES WILL HELP US SOLVE YOUR PROBLEM:</b></p>
<p><b>(All file formats are supported)</b></p>
<p class="proof"> <b>Upload Evidence:</b> <input class="evidence" name="evidence1" type="file" id="userfile" required></p>
<p><b>IF YOU HAVE MORE EVIDENCES THEN PLEASE HELP US BY UPLOADING THEM:</b></p>
<p class="proof"> <b>Upload Evidence:</b> <input class="evidence" name="evidence2" type="file" id="userfile"></p>
<p class="proof"> <b>Upload Evidence:</b> <input class="evidence" name="evidence3" type="file" id="userfile"></p>
<p><textarea class="address_tab" type="text" name="address" id="address" rows="5" cols="50" placeholder="Enter Address Where This Happened: " required></textarea></p>
<p><textarea class="problem_tab" type="text" name="problemdefinition" id="problem" rows="10" cols="50" placeholder="Explain The Problem: " required></textarea></p>
<p><b>Create a Password: <br>(It will be used for unique identification of each report) </b> <br><br><input type="password" onkeypress='checkPass();' class="unique_id" name="password" required></p>
<p><b>Confirm Password: <br> <input type="password" onkeypress='checkPass();' class="unique_id" name="c_password" required></b></p>
<br>
<div>
<button type="submit" class="report" name="upload"><b>UPLOAD</b></button>
</div>
</section>
</form>
</div>
</body>
</html>