-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform_new_article.php
64 lines (51 loc) · 1.98 KB
/
form_new_article.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
62
63
64
<?php session_start();
require_once 'user_validation.php';
require_once 'common_functions.php';
// to prevent access to this page for unauthorized users
if(!is_logged())
RedirectTo('index.php');
?>
<?php include 'header.php' ?>
<body>
<div class="brand">Best Friend Ever</div>
<div class="address-bar">Everything about dogs</div>
<<?php include 'navigation.php' ?>
<div class="container">
<div class="row">
<div class="box">
<div class="col-lg-12">
<hr>
<h2 class="intro-text text-center">New
<strong>article</strong>
</h2>
<hr>
<h2></h2>
<form role="form" action="addArticle.php" method="post">
<div class="row">
<div class="form-group col-lg-4">
<label>Title</label>
<input type="text" name="title" class="form-control">
</div>
<div class="clearfix"></div>
<div class="form-group col-lg-12">
<label>Content</label>
<textarea class="form-control" rows="20" input type="text" name="content" ></textarea>
</div>
<div class="form-group col-lg-12">
<input type="hidden" name="user_id" value="19">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="button" class="btn btn-default">Cancel</button>
<span> </span>
<!-- <button type="button" class="btn btn-default">Upload image</button>-->
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- /.container -->
<?php include 'footer.html' ?>
<?php include 'Scripts.html' ?>
</body>
</html>