-
Notifications
You must be signed in to change notification settings - Fork 2
/
addForum.php
41 lines (38 loc) · 1.04 KB
/
addForum.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
<?php
include("common.php");
outHtml1("Add Forum");
?>
<!-- TinyMCE -->
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="tiny_mce_init.js"></script>
<?php
outHtml2("Add Forum:", "index.php");
?>
<form action="addForumExecute.php" method="post">
<table class="tbl">
<tr>
<td class="tblleft">Forum Name</td>
<td class="tblright"><input type="text" name="name"/></td>
</tr>
<tr>
<td class="tblleft">Forum Description</td>
<td class="tblright">
<div style="margin-left: 1%; padding: 0;"><textarea name="description" id="description"></textarea></div>
</td>
</tr>
</table>
<?php
if ($_GET['error'] == 1)
{
echo "<div class='error'>Please enter a forum name!</div>";
}
else if ($_GET['error'] == 2)
{
echo "<div class='error'>Please enter a forum description!</div>";
}
?>
<div id="submitDiv"><input type="submit" value="Add Forum" /></div>
</form>
<?php
outHtml3();
?>