6 <h1>Samba4 exception test</h1>
8 <form name="ExceptionTest" method="POST" action="@@request['SCRIPT_NAME']">
9 <input name="submit" type="submit" value="Generate Exception">
10 <input name="submit" type="submit" value="No Exception">
11 <input name="submit" type="submit" value="Cancel"><br>
15 if (request['REQUEST_METHOD'] == "POST") {
16 /* if they cancelled then take them back to the list of tests */
17 if (form['submit'] == "Cancel") {
18 redirect("index.esp");
21 function TestFunction(arg1, arg2) {
25 if (form['submit'] == "Generate Exception") {
26 write("I expect you to die Mr Bond!<br>\n");
29 write("no exception<br>\n");
30 TestFunction("foo", "bar");
35 and here is some filler text ...