Update
This commit is contained in:
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 187 KiB |
22
cgi-bin/uebung07/master.html
Executable file
22
cgi-bin/uebung07/master.html
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>Blog</title>
|
||||||
|
<style>
|
||||||
|
body {background-color: mintcream;}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1 style="color: wheat">Just try to think creatively</h1>
|
||||||
|
<form action="posts-store.py" method="POST">
|
||||||
|
<input type="text" name="title" placeholder="kreativen Titel hier platzieren" style="width: 487px;" required><br><br>
|
||||||
|
<textarea name="content"
|
||||||
|
placeholder="" style="width: 1500px; height: 330px;" required></textarea><br><br>
|
||||||
|
<input type="text" name="tags" placeholder="place tags #here" style="width: 487px;" required><br><br>
|
||||||
|
<input type="submit" value="An den BND senden">
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
@@ -5,9 +5,9 @@ import cgitb
|
|||||||
cgitb.enable()
|
cgitb.enable()
|
||||||
|
|
||||||
|
|
||||||
form = open("doggu.html", "r").read()
|
form = open("master.html", "r").read()
|
||||||
print("Content-type: text/html\n")
|
print("Content-type: text/html\n")
|
||||||
print(form)
|
print(form)
|
||||||
|
|
||||||
print('<a href="posts-show.py">Zeig mir alle Posts!</a><br>')
|
print('<a href="posts-show.py">Alle Posts!</a><br>')
|
||||||
print('<a href="tags-show.py">Zeig mir alle Tags!</a>')
|
print('<a href="tags-show.py">Alle Tags!</a>')
|
||||||
|
@@ -47,6 +47,6 @@ else:
|
|||||||
|
|
||||||
|
|
||||||
print()
|
print()
|
||||||
print('<a href="posts-show.py">Zeig mir alle Posts!</a><br>')
|
print('<a href="posts-show.py">Alle Posts!</a><br>')
|
||||||
print('<a href="tags-show.py">Falls du noch nicht alle Tags siehst ist dies nach diesem Klick der Fall!</a><br>')
|
print('<a href="tags-show.py">Falls du noch nicht alle Tags siehst ist dies nach diesem Klick der Fall!</a><br>')
|
||||||
print('<a href="posts-create.py">Ich will einen neuen Post bauen!</a>')
|
print('<a href="posts-create.py">Neuen Post verfassen!</a>')
|
||||||
|
Reference in New Issue
Block a user