This commit is contained in:
2019-06-24 10:31:10 +02:00
parent ebba7bc34a
commit 41fb95401e
5 changed files with 27 additions and 28 deletions

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
View 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>

View File

@@ -5,9 +5,9 @@ import cgitb
cgitb.enable()
form = open("doggu.html", "r").read()
form = open("master.html", "r").read()
print("Content-type: text/html\n")
print(form)
print('<a href="posts-show.py">Zeig mir alle Posts!</a><br>')
print('<a href="tags-show.py">Zeig mir alle Tags!</a>')
print('<a href="posts-show.py">Alle Posts!</a><br>')
print('<a href="tags-show.py">Alle Tags!</a>')

View File

@@ -47,6 +47,6 @@ else:
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="posts-create.py">Ich will einen neuen Post bauen!</a>')
print('<a href="posts-create.py">Neuen Post verfassen!</a>')