-
Notifications
You must be signed in to change notification settings - Fork 1
/
createPost.php
54 lines (48 loc) · 2.15 KB
/
createPost.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
<?php
include ("includes/db.class.php");
include ("includes/functions.php");
session_start();
if ($_SESSION["role"]=="User"):?>
<h2>Editör olmadan yazamazsınız! Editör pozisyonu için başvurmak isterseniz<br>"[email protected]" a
kullanıcı adı ve portfolyonuz ile başvuru maili gönderiniz... :)
</h2>
<a href="userpage.php">Anasayfaya dönebilirsiniz..</a>
<?php else:?>
<h3>POST EKLE</h3>
<!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">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="fontawesome/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/medium.css">
<title>Document</title>
</head>
<body>
<form action="createProcessPost.php" method="POST">
<h3>TITLE</h3>
<div class="form-outline ">
<textarea class="form-control" name="title" placeholder="Başlığı yazınız" id="title" rows="3"></textarea>
<label class="form-label" for="textAreaExample"></label>
</div>
<h3>TOPIC</h3>
<div class="form-outline ">
<textarea class="form-control" name="topic" placeholder="Konu başlığını yazınız" id="topic" rows="3"></textarea>
<label class="form-label" for="textAreaExample"></label>
</div>
<h3>CONTENT</h3>
<div class="form-outline ">
<textarea class="form-control" name="content" placeholder="İçeriği yazınız" id="content" rows="15"></textarea>
<label class="form-label" for="textAreaExample"></label>
</div>
<input style="font-size: 14px;background-color: rgba(25, 25, 25, 1);" type="submit" name="gonder" value="Post" class="btn btn-dark border border-dark text-light rounded-pill" />
<!-- sayfa oluşturacağız form sayfası -->
</form>
</body>
</html>
<?php endif;?>