master
nathaniel smith 2015-08-01 16:58:45 -07:00
parent eae0c5a3c2
commit fc0613985b
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ def post_guestbook():
message = request.form['message'][0:400] message = request.form['message'][0:400]
name = request.form['name'][0:140] name = request.form['name'][0:140]
captcha = request.form['hmm'] captcha = request.form['hmm']
print(captcha) if captcha == "scriz":
save_post(name, message) save_post(name, message)
return redirect("/guestbook") return redirect("/guestbook")

View File

@ -18,7 +18,7 @@
<input type="text" name="name" maxlength="140" /> <input type="text" name="name" maxlength="140" />
</td> </td>
<td> <td>
<textarea maxlength="400" style="border:0px"name="message" cols="100" rows="10"></textarea> <textarea maxlength="400" style="border:0px"name="message" cols="50" rows="10"></textarea>
</td> </td>
<td> <td>
<input type="radio" name="hmm" value="scriz" selected="true">yeah<br> <input type="radio" name="hmm" value="scriz" selected="true">yeah<br>