-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.php
executable file
·51 lines (49 loc) · 1.63 KB
/
blog.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
<?php
include_once 'blogSaveToDatabase.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Write Blogs...</title>
<script src="https://cdn.ckeditor.com/4.13.0/standard/ckeditor.js"></script>
<style>
body
{
background-image: url("bg.jpg");
background-size: cover;
margin-top: 0;
overflow-x: hidden;
}
input[type=text]
{
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
</style>
</head>
<body>
<h1>Write Blogs...</h1>
<form action="blogSaveToDatabase.php" method="POST" target="_blank">
<label for="name">Name</label>
<input type="text" name="name" id="name" required autofocus placeholder="Your full name...">
<label for="title">Title</label>
<input type="text" name="title" id="title" required placeholder="Title of the blog...">
<label for="editor">Start writing...</label>
<br>
<br>
<textarea name="editor"></textarea>
<br>
<input type="submit" name="submit" value="Save">
</form>
<script>
CKEDITOR.replace('editor');
</script>
</body>
</html>