summaryrefslogtreecommitdiff
path: root/swat/esptest/exception.esp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-30 08:23:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:15 -0500
commit1bf7a917b2d2ba2806e018ca385e44557c7dbf56 (patch)
tree4605000b5f4197033e94cb0628cb8329394a472b /swat/esptest/exception.esp
parent0f7314ea019a42e202346fc429330f1e8dfa9b7d (diff)
downloadsamba-1bf7a917b2d2ba2806e018ca385e44557c7dbf56.tar.gz
samba-1bf7a917b2d2ba2806e018ca385e44557c7dbf56.tar.bz2
samba-1bf7a917b2d2ba2806e018ca385e44557c7dbf56.zip
r7094: use the Form() object in a few more places
(This used to be commit 9b8546f92179dba826e7ca5ed009b24486ef7a2c)
Diffstat (limited to 'swat/esptest/exception.esp')
-rw-r--r--swat/esptest/exception.esp10
1 files changed, 6 insertions, 4 deletions
diff --git a/swat/esptest/exception.esp b/swat/esptest/exception.esp
index cfd0f312fa..986b616dab 100644
--- a/swat/esptest/exception.esp
+++ b/swat/esptest/exception.esp
@@ -2,12 +2,14 @@
<h1>Samba4 exception test</h1>
-<form name="ExceptionTest" method="POST" action="@@request['SCRIPT_NAME']">
- <input name="submit" type="submit" value="Generate Exception">
- <input name="submit" type="submit" value="No Exception">
-</form>
<%
+var f = Form("ExceptionTest", 0, 2);
+f.submit[0] = "Generate Exception";
+f.submit[1] = "No Exception";
+
+display_form(f);
+
if (request['REQUEST_METHOD'] == "POST") {
function TestFunction(arg1, arg2) {
return "OK";