mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
1bf7a917b2
(This used to be commit 9b8546f92179dba826e7ca5ed009b24486ef7a2c)
28 lines
540 B
Plaintext
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(); %>
|