Samples |
Some Custom Sample Code Examples of custom items and various code snippets can be found throughout the forums at www.empirisoft.com/support The following examples of HTML form code are taken from www.w3schools.com/html/html_forms.asp Text Fields Text fields are used when you want the user to type letters, numbers, etc. in a form. <form> How it looks in a browser: Note that the form itself is not visible. Also note that in most browsers, the width of the text field is 20 characters by default. Radio Buttons Radio Buttons are used when you want the user to select one of a limited number of choices. <form> How it looks in a browser: Note that only one option can be chosen. Checkboxes Checkboxes are used when you want the user to select one or more options of a limited number of choices. <form> How it looks in a browser: The Submit Button When the user clicks on the "Submit" button, the content of the form is sent to another file. The form's action attribute defines the name of the file to send the content to. The file defined in the action attribute usually does something with the received input. <form method="post"> How it looks in a browser: If you type some characters in the text field above, and click the "Submit" button, you will make the text data available to MediaLab for the variable User. Source: www.w3schools.com/html/html_forms.asp Back to Custom Items Overview |