This article mainly introduces how to obtain an array transmitted from an html form by using php. The example analyzes the skill of using php to operate form elements, which is of great practical value, for more information about how to use php to retrieve and pass arrays from html forms, see the following example. Sha
HTML learning 9: Form tags of common tags
HTML forms are used to collect different types of user input.
Form tag list:
One form tag
Logon Name:
Logon password:
Note that when you type characters in the password field, the browser uses the project symbol to replace these ch
One, form labelThe form label is a very important tag in the HTML tag. Often used for registration, login pages.Note: There are two values for method. Get (default value) and post. Get data security is not post high. The speed of the post is not get fast.Elements commonly used in form:1. Text box2. Password box3. Drop-
The complete HTML code is as follows: lt; html gt; lt; head gt; lt; metahttp-equiv quot; content-Type quot; content quot; texthtml; charsetgb2312 quot; gt; lt; title gt; upload form with image preview function webjx.com lt; title gt; lt; script g upload form with image preview function, complete
When a set of form elements is placed inside the The The Differences between HTML 4.01 and HTML 5HTML5 has the following properties: These properties are not supported in disabled, form, name,html 4.01.Property
Properties
value
Description
HTML base form 1. Form labelsLabel descriptionForm: Define a form for user inputInput: Defining an entry fieldTEXTAREA: Defining a Text field (a multiline input control)Label: Define a control's labelFieldSet: Defining DomainsLegend: Defining the title of a fieldSelect: Define a selection listOption: Define options in
= "/queryallstudent")2 Public voidquery (HttpServletResponse resp) {3 Try {4 /*many student objects are stored in the list collection*/5listuserservice.getallstudentinfo ();6 /*to replace a list collection with a JSON object*/7Jsonarray data =Jsonarray.fromobject (students);8 //next send the data9 /*set the encoding to prevent garbled problems*/TenResp.setcharacterencoding ("Utf-8"); One /*get the output stream*/ APrintWrit
How does a website interact with users? The answer is to use an HTML form (form). The form can transfer the data entered by the browser to the server side, so that the server-side program can process the data that the table only son over.Syntax: In HTML, use
If the security of Form submission is poor, it is easy to attack the website because of this form submission. Here I will share two examples of dangerous code commonly used php Filter Form submission, for more information, see. PHP filters the html code of the submitted form
is not possible, with the use of related words:Today want to summarize a few very useful HTML tags, development is often used, unfamiliar people may be really unclear, respectively:ReadOnly, DISABLED, autocompleteReadOnly indicates that the value of this field is not modifiable, can only be used with type= "text", can be copied, selectable, can receive focus, and the background receives a pass value.readonly= " readonly"/>Disabled means that the INPU
the current page, the limited submission form of value, if not, then submit the label text, submit to aa.html, Post the method of submission * /reset buttoninputtype= "reset"value= "reset"/>BR/>/ * Reset the current page */picture buttoninputtype= "image"src= "psb.jpg"width= "$"Height= "$"value= "tupian">BR/>/ * Also belongs to the submit button, you can submit the current page to Aa. Html*/normal Buttonin
Filter dangerous html code in form submission using php
PHP filters the html code of the submitted form, which may be exploited to introduce external dangerous content. For example, some forms submitted by the user contain html content, but this may cause confusion
The previous section describes how to use the PHP super variable $ _ GET to obtain HTML Form data. This section describes how to use the PHP super variable $ _ POST to obtain HTMLForm data.
The previous section describes how to use the PHP super variable $ _ GET to obtain HTML Form data. This section describes how to u
HTML form submission method: two attributes, action and method, which are 5-heavy
(1) The action attribute specifies the program that processes the current form after it is submitted. This handler can be any dynamic web page.
(2) The method attribute specifies the form submission method. It has two possible valu
Before reading this article, you can read the rfc1867 Form Based File Upload in HTML protocol.
1.I don't know why, on the LAN, some computers contain The server has used a variety of file receiving tool libraries such as Apache common file upload and jspsmartupload.I have also changed browsers such as IE and Firefox. the problem persists.
In the search process, some people say that this is a browser restric
attribute 650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/77/08/wKiom1ZhR2KjC4zIAABAs0RUJ1Q625.jpg "title=" 11.jpg "alt=" Wkiom1zhr2kjc4ziaabas0ruj1q625.jpg "/>This example shows how to draw a box with a caption around the data.Height: Measurements: Three properties of button buttons
Submit
The button is the Submit button (except Internet Explorer, which is the default value for other browsers).
button
The button is a clickable button (the de
Form elements: ID: Unique, not allowed to repeat name in the same page name: class: Classes, if a few elements of the class, they are forced to set as a classForm (i) 1. Common (must remember) Width Property Border Property cellpadding Property cellspacing Property 2. Background Property Backgroung property bgcolor property 3. Alignment Properties Align Properties--Horizontal alignment: Center Center L EFT Right (ii) 1. Common Properties: Height prope
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.