test_main.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <html>
  2. <head><title>Test Page</title></head>
  3. <table border>
  4. <tr>
  5. <th colspan="4"> GET: </td>
  6. </tr>
  7. <tr>
  8. <td>Lua script</td>
  9. <td><a href="test_main.lua?field1=ab&field2=cd&field1=ef">module</a></td>
  10. </tr>
  11. <tr>
  12. <td>HTML template</td>
  13. <td><a href="test_main.lp?field1=ab&field2=cd&field1=ef">module</a></td>
  14. </tr>
  15. <tr>
  16. <th colspan="4"> POST: </td>
  17. </tr>
  18. <tr>
  19. <td colspan="4">
  20. <form method="POST" action="">
  21. <table>
  22. <tr>
  23. <td colspan="4">
  24. field 1: <input type="text" name="field1"><br>
  25. field 2: <input type="text" name="field2"><br>
  26. field 3:
  27. <input type="checkbox" name="field3" value="op 1">op 1
  28. <input type="checkbox" name="field3" value="op 2">op 2
  29. <input type="checkbox" name="field3" value="op 3">op 3
  30. </td>
  31. </tr>
  32. <tr>
  33. <td>Lua script</td>
  34. <td>
  35. <a href="javascript:document.forms[0].action='test_main.lua';document.forms[0].submit()">module</a>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td>HTML template</td>
  40. <td>
  41. <a href="javascript:document.forms[0].action='test_main.lp';document.forms[0].submit()">module</a>
  42. </td>
  43. </tr>
  44. </table>
  45. </form>
  46. </td>
  47. </tr>
  48. <tr>
  49. <th colspan="4"> POST (with upload): </td>
  50. </tr>
  51. <tr>
  52. <td colspan="4">
  53. <form method="POST" enctype="multipart/form-data" action="">
  54. <table>
  55. <tr>
  56. <td colspan="4">
  57. field 1: <input type="text" name="field1"><br>
  58. file (binary!): <input type="file" name="file"><br>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td>Lua script</td>
  63. <td>
  64. <a href="javascript:document.forms[1].action='test_main.lua';document.forms[1].submit()">module</a>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td>HTML template</td>
  69. <td>
  70. <a href="javascript:document.forms[1].action='test_main.lp';document.forms[1].submit()">module</a>
  71. </td>
  72. </tr>
  73. </table>
  74. </form>
  75. </td>
  76. </tr>
  77. <tr>
  78. <th colspan="4"> Cookies: </td>
  79. </tr>
  80. <tr>
  81. <td>Lua script</td>
  82. <td><a href="test_cookies.lua">module</a></td>
  83. </tr>
  84. <tr>
  85. <td>HTML template</td>
  86. <td><a href="test_cookies.lp">module</a></td>
  87. </tr>
  88. <tr>
  89. <th colspan="4"> Filesystem: </td>
  90. </tr>
  91. <tr>
  92. <td>Lua script</td>
  93. <td><a href="test_fs.lua">module</a></td>
  94. </tr>
  95. <tr>
  96. <th colspan="4"> Session: </td>
  97. </tr>
  98. <tr>
  99. <td>Lua script</td>
  100. <td><a href="test_session.lua">module</a></td>
  101. </tr>
  102. <tr>
  103. <th colspan="4"> CGI Variables: </td>
  104. </tr>
  105. <tr>
  106. <td>HTML template</td>
  107. <td><a href="test_variables.lp">module</a></td>
  108. </tr>
  109. <tr>
  110. <th colspan="4"> Library Overview: </td>
  111. </tr>
  112. <tr>
  113. <td>HTML template</td>
  114. <td><a href="overview.lp">module</a></td>
  115. </tr>
  116. <tr>
  117. <th colspan="4"> Concurrency </td>
  118. </tr>
  119. <tr>
  120. <td>Lua script</td>
  121. <td><a href="test_conc.lua">module</a></td>
  122. </tr>
  123. </table>
  124. </html>