-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.inc
27 lines (22 loc) · 1.26 KB
/
form.inc
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
<h2>Make a post!</h2>
<p class="error">* Required</p>
<form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" enctype="multipart/form-data">
<label for="image">Upload an image:</label>
<input type="file" id="image" name="image" class="button" onchange="setSrc(500); showAgreement();"> <span class="error"> * <?php echo $pfpErr; ?></span> <br>
<div id="agreementDiv">
<img id="imgSrc">
<canvas id="preview" width="520" height="520"></canvas><br><br>
</div> <br>
<input type="checkbox" id="agreement" name="agreement" <?php if ($agreement != "") echo "checked"; ?>>
<label for="agreement">I give RamBook non-exclusive, transferable, sub-licensable, royalty-free, worldwide license to use this photo.</label>
<span class = "error"> * <?php echo $agreeErr; ?> </span> <br><br>
<label for="desc">Description:</label><br>
<textarea id="desc" name="desc" rows="4" cols="50"><?php echo $desc; ?></textarea>
<br>
<br>
<label for="tags">Tags (please separate all tags with commas!): </label> <span class="error"> <?php echo $tagsErr; ?></span> <br>
<textarea id="tags" name="tags" rows="2" cols="50"><?php echo $tagstring; ?></textarea>
<br>
<br>
<input type=submit value="Post!" name="form" class="button">
</form>