-
Notifications
You must be signed in to change notification settings - Fork 0
/
repost.php
33 lines (29 loc) · 1.12 KB
/
repost.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
<?php
include("header.php");
?>
<?php
$postID = $_GET['post_id'];
?>
<div class="rounded-[0.25em] bg-slate-800 lg:w-[65%] w-[95%] mt-8 m-auto p-2">
<h1 class="text-center text-3xl text-white">
Write a comment
</h1>
<form action="addrepost.php" method="post">
<p class="text-white p-2">
<label for="userName" class="text-1xl">Username:</label>
<input type="text" name="user_name" id="userName" class="bg-slate-700 p-1 rounded-[0.25em]">
</p>
<p class="text-white p-2">
<label for="userName" class="text-1xl">Password:</label>
<input type="password" name="password" id="Password" class="bg-slate-700 p-1 rounded-[0.25em]">
</p>
<p class="text-white p-2 hidden">
<label for="postContent" class="text-1xl">PostID:</label>
<input id="addpostid" type="text" name="post_id" id="postID" class="bg-slate-700 p-1 rounded-[0.25em]" value="<?php echo $postID; ?>" readonly>
</p>
<input type="submit" value="Submit" class="mt-4 rounded-[0.25em] text-white bg-slate-700 p-2 float-right m-2">
</form>
</div>
<?php
include("footer.php");
?>