-
Notifications
You must be signed in to change notification settings - Fork 0
/
new_post.php
48 lines (45 loc) · 849 Bytes
/
new_post.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
42
43
44
45
46
47
48
<html>
<head>
<style>
*{
margin:0px;
padding:0px;
font-size:45px;
font-family:bold;
}
.inp{
border-color:blue;
border-radius:20px;
}
body{
background-color:#4A3F4A;
}
h1{
color:#f6e330;
}
</style>
</head>
<body>
<h1>New Post</h1>
<form method="post">
<textarea name="msg" rows="4" cols="50" class="inp">
</textarea>
<br>
<br>
<input type="submit">
</form>
</body>
</html>
<?php
if($info = $_POST['msg']){
$start = file('mus.txt');
foreach($start as $meme);
$nnn = fopen("post.html",'a');
fwrite($nnn,"<g>$meme:</g><p>$info</p> \n \n");
fclose($nnn);
echo "
<br>
<a href='show.php'><button>Time Line</button>";
}else{
echo "<p>Not a post :(</p>";
}