1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00
samba-mirror/swat/esptest/formtest.esp
Andrew Tridgell 1bf7a917b2 r7094: use the Form() object in a few more places
(This used to be commit 9b8546f92179dba826e7ca5ed009b24486ef7a2c)
2007-10-10 13:17:15 -05:00

28 lines
540 B
Plaintext

<% page_header("columns", "ESP Form Test"); %>
<%
var f = Form("FormTest", 2, 2);
f.element[0].label = "First Name";
f.element[0].name = "firstName";
f.element[1].label = "Last Name";
f.element[1].name = "lastName";
f.submit[0] = "OK";
f.submit[1] = "Cancel";
display_form(f);
<%
/* if its a post then the user has filled in the form, so
report the values
*/
if (form['submit'] == "OK") {
%>
You chose firstName=@@form['firstName'] lastName=@@form['lastName']<p>
<%
simple_table(form);
}
%>
<% page_footer(); %>