forked from andyblarblar/assignment6cis435
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_article.php
More file actions
28 lines (25 loc) · 772 Bytes
/
create_article.php
File metadata and controls
28 lines (25 loc) · 772 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Create Article</title>
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
</head>
<script>
tinymce.init({
selector: '#mytextarea'
});
</script>
<body>
<form action="insert.php" method="post" enctype="multipart/form-data">
<!-- Discriminate add vs edit via hidden inputs-->
<input type="hidden" name="operation" value="Add">
<label for="author_name">Author name:</label>
<input type="text" name="author_name">
<br>
<label for="mytextarea">Article body:</label>
<input type="textarea" id="mytextarea" name="article_text">
<input type="submit" value="submit">
</form>
</body>
</html>