design and layout, designing web usability, web graphic design, creating web site
Tuesday, November 10, 2009
Web Design and Programming Introduction to Web Form
Web Design and Programming Introduction to Web Form Virtually any Web site without at least one course in one of your pages. The modules are useful for gathering data from web visitors and users. Once you send the form to the server, a form processing script should be in the form of data, to validate user input matches the expected format for each sector (eg e-mail address field must be a string with the format of a valid email address) and information as desired. The script can be stored in a database, e-mail, or simply do some processing and display the same result. Validating user input is essential to prevent malicious hackers from damaging your site. A definition of form in html with the form begins and ends with the label / form of tag. This tag can have multiple attributes such as method (GET or POST), and action (the url of the form processing script). If you use the GET method, data is encoded in the URL in the form of action. This method is recommended when the form is a form of research. With the POST method, form data in a body of the message. This is the preferred method when the form is used to update a database or send e-mail or perform any action other than simply retrieve data. The fields are used to collect data. Usually a label is placed on each field, so the user knows what input data. There are different types of fields, including:? Text? Textareas? Dropping down? Choose more? File? Radio buttons? Casillas? Buttons? Hidden fields are used to send hidden data that the user does not need to see, along with the module. An example of how this could be a number, so that the form processing script that identifies the module was presented. The field of file allows users to upload a file. The form processing script to get the file along with the rest of the data. This field to function properly, you must include this attribute in the label: enctype = "multipart / form-data". The buttons are used to send or reset the form. Refer to an HTML guide for a complete description of features and syntax of each tag. You can find a guide or on many other sites. If the shape is complex, it is useful to group the fields in the fields using the fieldset tag. Simply place the fieldset tag, and optionally, a legend of the section name / Legend of the mark, then all the form fields and / fieldset tag after them. E 'can use the CSS (Cascading Style Sheets), or line styles to change the look of the control module. You can bring the form to a different level, in combination with the use of scripting language like JavaScript. You can make an immediate response to certain events, such as the user clicking on a control, a field or change its value. You can highlight the field that has focus, for example. Or count how many characters were entered in a text or a text. You can do calculations and display the results automatically. The possibilities are endless.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment