-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_community.php
34 lines (28 loc) · 1.44 KB
/
create_community.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
<?php include('header.php');
if(!$loggedin){
$_SESSION['AlertRed'] = "You have to be logged in to do that.";
header("location:index.php");
}?>
<div class="container">
<form class="form-signin" method="post" action="create_community_check.php">
<h2 class="form-signin-heading">Create Community</h2>
<label for="inputName" class="sr-only">Community name</label>
<input type="name" name="inputName" class="form-control"
maxlength=127 placeholder="Community name" required autofocus>
<label for="inputDesc" class="sr-only">Description</label>
<input type="name" name="inputDesc" class="form-control"
maxlength=1023 placeholder="Description" required>
<label for="inputPrivacy" class="sr-only">Privacy</label>
<label for="tags" class="sr-only">Tags</label>
<textarea rows="2" name="inputTags" class="form-control"
maxlength=512 placeholder="Tags (seperated by comma)" required></textarea>
<div class="radio">
<label><input type="radio" name="inputPrivacy" value="public" required>Public (Anyone can join, anyone can read)</label>
</div>
<div class="radio">
<label><input type="radio" name="inputPrivacy" value="private" required>Private (Approve to join, members can read)</label>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Create</button>
</form>
</div> <!-- /container -->
<?php include('footer.php');?>