1 <% page_header("columns", "ESP Form Test", "esptest");
2 include("/scripting/forms.js");
6 var f = FormObj("FormTest", 3, 2);
7 f.element[0].label = "First Name";
8 f.element[0].name = "firstName";
9 f.element[0].value = form['firstName'];
10 f.element[1].label = "Last Name";
11 f.element[1].name = "lastName";
12 f.element[1].value = form['lastName'];
13 f.element[2].label = "Color";
14 f.element[2].type = "select";
15 f.element[2].list = new Array("Red", "Green", "Blue", "Yellow");
16 f.element[2].value = form['Color'];
18 f.submit[1] = "Cancel";
23 /* if its a post then the user has filled in the form, so
26 if (form['submit'] == "OK") {
28 You chose firstName=@@form['firstName'] lastName=@@form['lastName']<p>