Samba4 form test
<%
/* if its a post then the user has filled in the form, so
report the values
*/
if (request['REQUEST_METHOD'] == "POST") {
/* if they cancelled then take them back to the list of tests */
if (form['submit'] == "Cancel") {
redirect("index.html");
}
%>
You chose firstName=@@form['firstName'] lastName=@@form['lastName']
<%
function showArray(name, array) {
write("Array: " + name + "
\n");
for (v in array) {
write(name + "[" + v + "]=" + array[v] + "
\n");
}
}
showArray("form", form);
}
%>