Download presentation
Presentation is loading. Please wait.
Published byAbraham Baldwin Modified over 9 years ago
1
IDK0040 Võrgurakendused I harjutus 05: Forms Deniss Kumlander
2
HTML Forms and Input A form is an area that can contain form elements. Form elements are elements that allow the user to enter information (like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc.) in a form. A form is defined with the tag.
3
Text Fields First name: Last name: type="password"
4
Radio Buttons Male Female
5
Checkboxes I have a bike I have a car
6
Volvo Saab Fiat Audi Drop-Down Box
7
Volvo Saab Fiat Audi Drop-Down Box
8
Drop-down box with subelements Estonia Sweden Japan China
9
Textarea The cat was playing in the garden.
10
File upload File to upload:
11
Buttons A =, B =
12
Hidden control - used to transfer some hidden information to/from server as controls could be referenced by javascript etc.
13
Fieldset Health information: Height Weight
14
Identifying controls Controls can be identified/referred Name ID
15
The Form's Action Attribute and 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.
16
The Form's Action Attribute and the Submit Button Username: If you type some characters in the text field above, and click the "Submit" button, you will send your input to a page called "act.php".
17
This form sends an e-mail. Name: Mail: Comment: Example
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.