utfrmgn2.wbb

Generate a complete HTML form from a template

Syntax

CALL "utfrmgn2.wbb",tpl$,flds$,captions$,flags$,captags$, actionval$, submitval$, resetval$, placement,work$

This program uses the utfrmgen.wbb program to create a form and adds the submit and reset buttons and form action tags to create a complete HTML input form.

For the tpl$, flds$, captions$,flags$, captags$, and work$ variables, refer to the "utfrmgen.wbb" documentation.

actionval$ contains the name of the script to execute when the submit button is pressed. All forms contain a tag similar to <form method="post" action="actionname">. The text in actionval$ is used for actionname.

submitval$ contains the caption used on the submit button(s). If this is null, the browser places its own caption on the button.

resetval$ contains the caption used on the reset button(s). If this is null, no reset button is created on the form.

placement is used to determine where to place the submit and reset buttons. The following values are valid:

1 = Below form

2 = Above form

3 = Both above and below form

Add 100 to these values for a horizontal rule and to separate the buttons from the form body.

If utfrmgn2.wbb recognizes any field types of “type=file”, the <form> tag is created with the enctype=multipart/form-data option to support file uploading. utcgi.wbb is compatible with this attribute, but only modern browsers support it (i.e., Netscape Navigator 3.0 or above, Microsoft Internet Explorer 3.0 or above.)

 
Return to first page