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


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



© 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