-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost_news.php
61 lines (43 loc) · 1.35 KB
/
post_news.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
include "validate_admin.php";
include "header.php";
include "user_navbar.php";
include "admin_sidebar.php";
include "session_timeout.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="customer_add_style.css">
</head>
<body>
<form class="news_form" action="post_news_action.php" method="post">
<div class="flex-container">
<div class=container>
<label>News Headline :</label><br>
<input name="headline" size="50" type="text" required />
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Details :</label><br>
<textarea name="news_details" style="height: 200px; width: 60vw;" required /></textarea>
</div>
</div>
<div class="flex-container">
<div class="container">
<button type="submit">Submit</button>
</div>
<div class="container">
<button type="reset" class="reset" onclick="return confirmReset();">Reset</button>
</div>
</div>
</form>
<script>
function confirmReset() {
return confirm('Do you really want to reset?')
}
</script>
</body>
</html>