4. In the Link field of the Property inspector, enter the following code for a graphical Submit button:
javascript:document.form1.submit()
Similarly, enter this code for a Reset button:
javascript:document.form1.reset()
Be sure to change the code to reflect your specifics: the name of your form as well as the
name of your images.
Using Hidden and File Fields
You should also be aware of two other special-purpose form fields, the hidden field and the file field, which
are supported by all major browsers. The hidden field is extremely useful for passing variables to your Web
application programs, and the file field enables users to attach a file to the form being submitted.
The hidden input type
When passing information from a form to a CGI program, the programmer often needs to send data that
should not be made visible to the user. The data could be a variable needed by the CGI program to set
information on the recipient of the form, or it could be a URL to which the server program redirects the
user after the form is submitted. To send this sort of information unseen by the form user, you can use a
hidden form object.
The hidden field is inserted in a form much like the other form elements. Place your cursor in the desired
position and choose Insert ??? Form ??? Hidden Field or click the Hidden Field button in the Forms category
of the Insert bar.
Pages:
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953