Basic HTML version of Foils prepared May 3 1998

Foil 51 Dynamic HTML Forms - II

From Java Blend and Cold Fusion High Level Database Interfaces CPS616 Web Technologies -- Spring 98. by Chao Wei Ou


1 In the HTML form, select one or more companies to get information on:
2 <INPUT TYPE="checkbox" NAME="SelectedOrgs" VALUE=5>
3 Mobil Corporation<BR>
4 <INPUT TYPE="checkbox" NAME="SelectedOrgs" VALUE=19>
5 Shapeware, Inc.<BR>
6 <INPUT TYPE="checkbox" NAME="SelectedOrgs" VALUE=13>
7 BankBoston<BR>
8 <INPUT TYPE="hidden" NAME="SelectedOrgs_required"
9 VALUE="You must select at least one organization.">
10
11 The cmf program that processes the form includes:
12 SELECT * FROM Organizations
13 WHERE Organization_ID IN ( #SelectedOrgs# )
14
15 If the users selects Shapeware and BankBoston, the statement sent to the database would be:
16 SELECT * FROM Organizations
17 WHERE Organization_ID IN ( 19, 13 )

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998