30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
+
+
+
+
|
}
# NB: You must set enctype="multipart/form-data" on your <form> in order
# for file upload to work.
wapp-trim {
<p><form method="POST" enctype="multipart/form-data">
File To Upload: <input type="file" name="file"><br>
<input type="checkbox" name="showenv" value="1">Show CGI Environment<br>
<input type="hidden" name="PARAM1"
value="Post parameter with non-lowercase names are suppressed">
<input type="hidden" name="param2.value"
value="Post parameters with non-lowercase names are suppressed">
<input type="submit" value="Submit">
</form></p>
<p><a href='%html([wapp-param SCRIPT_NAME])/self'>Show the script
that generates this page</a></p>
}
# Ordinary query parameters come through just like normal
if {[wapp-param showenv 0]} {
|