-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodify.html
More file actions
52 lines (51 loc) · 1.15 KB
/
modify.html
File metadata and controls
52 lines (51 loc) · 1.15 KB
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
49
50
51
52
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Simple Cloud NotePad</title>
<style type="text/css">
.head {
font-size: 24px;
font-family: "Microsoft YaHei";
}
#form1 {
height: 400px;
}
.txtfield {
height: 400px;
width: 100%;
font-family: "Microsoft YaHei";
font-size: 20px;
}
.button {
text-align: center;
font-family: "Microsoft YaHei";
}
.head p a {
text-decoration: none;
}
.head p a:visited {
color: #00F;
}
</style>
</head>
<body class="head">
<p>This is a <a href="index.html">NotePad </a>| Now you are modifying it(the content below will overwrite the file)</p>
<form action="notepad_modify.php" form id="form1" name="form1" method="post">
<textarea name="textarea" class="txtfield" id="textarea" form="form1">
<?php
$mynote = fopen("note.txt", "r") or die("Unable to open file!");
while(!feof($mynote)) {
echo fgets($mynote) ;
}
fclose($mynote);
?>
</textarea>
</form>
<p class="button">
<input name="submit" type="submit" id="submit" form="form1" value="Overwrite">
<input name="reset" type="reset" id="reset" form="form1" value="Reset">
</p>
</body>
</html>