71
|
1 #rem A page that accepts both GET and POST requests (non UC version,
|
|
2 #rem to verify case insensitivity of request methods).
|
|
3 #methods Get post
|
|
4 #python name.py
|
|
5 <!DOCTYPE html>
|
|
6 <html>
|
|
7 <head>
|
|
8 <title>Form Test</title>
|
|
9 </head>
|
|
10 <body>
|
|
11 <h1>Form Test</h1>
|
|
12 <h2>Enter Your Name Below</h2>
|
|
13 <form method="post">
|
|
14 <input type="text" name="name"/>
|
|
15 <input type="submit" value="Submit"/>
|
|
16 </form>
|
|
17 <if tal:condition="message is not None" tal:omit-tag="True">
|
|
18 <h2 tal:content="message.subject"></h2>
|
|
19 <p tal:attributes="style message.style" tal:content="message.body"></p>
|
|
20 </if>
|
|
21 </body>
|
|
22 </html>
|