PHP HTML No refresh submission form, phphtml submit form
Typically, we use AJAX to submit a form without a flush. A while ago, I followed the boss. Another way to submit a form without flushing is to use the IFRAME framework. Now let's sort it out and share it with everyone
Suppose you want to add the following content to the form: browsing the city. Not to mention cities across the country, there are dozens of cities with provincial capitals or above. It would be unimaginable to list all the cities on the webpage in the form of single-choice buttons mentioned above. The menu and list appear in the
HTML code:
html>
head>
meta http-equiv= "content-type" content= "text/html; Charset=utf8 ">
Title>this is a simple HTML form! title>
head>
body>
form action="send_simpleform.php" method="POST" >
Php HTML does not need to submit a new form. phphtml submits the form.
We usually use ajax to implement the process of refreshing new forms. Some time ago, I learned from the boss that another method of refreshing new forms is implemented using the iframe framework. Now let's sort it out and share it with you.First:Html page
PHP page:
HTML knowledge point summary form elements and html knowledge point forms
Web pages cannot be purely static without any interaction functions. Most websites use form elements. The form provides a way for the visitor to interact with the website, such as user registration and
HTML framework
What is a frame: dividing the browser into different parts, each loading a different page to achieve the effect of loading multiple pages in the same browser window.
Syntax Format:
Property:
COLS uses "pixel value" and "%" to split the left and right windows, "*" for the remainder. Using "*,*,*" means that the frame is divided evenly into 3. Using "*,*
In many cases, for example, when multiple files are on the ship, most of us use the HTML file control. It happens that we use the master page master, and the form is on the master page, in this case, the Upload File's enctype = "multipart/form-Data" cannot be directly set in the master page.
Solution:
The original ma
to select a file.
Input type = "hidden"Hide tags, used to implicitly submit variable values in the form
Input type = "password"Password text box. when you enter a character in this text box, it will be replaced with the * character.
Input type = "radio"Single option, used to set a group of selection items. You can select only one
Input type = "reset"Clears and resets the form content to clear the content o
text input box. when type = "password", the input box is the password input box. 2. name: name the text box for the background program ASP and PHP. 3. value: set the default value for the text input box. (Usually serves as a prompt) Example: 3. text field, supporting multi-line text inputWhen you need to input a large text segment in a form, you need to use the text input field. Syntax: Text 1,Tags appear in pairs, starting with End. 2. col
HTML language analysis-8 ▲ Top
8. Form tag
INPUT types: Text, Radio, Checkbox, Password, Submit/Reset, Image, File, Hidden, and Button.
■ Introduction
Forms are used in a lot of ways and are everywhere on the Internet. Of course, it is better to use them with CGI, so if you are interested in using or learning CGI, you can see the necessary fo
This article brings you to the content of the HTML table Form related knowledge Explanation (code example), there is a certain reference value, the need for friends can refer to, I hope to help you.
Open a link in a new browser window
new browser window .
mailto
mailto to make it easy for visitors to send e-mails to website managers .
mailto email address, the browser automatically calls the default clien
I have previously written an article on permission Control for form and process;ArticleThere is no specific implementation. Practice has proved that the flow of a single form among multiple process nodes is a problem that must be handled by workflows and electronic forms.
A single-phase combination of the workflow system and e-table allows different permissi
HTML form (HTML form) radio box (input type= "Radio") data
Take the name value of the selected box in the table, and you can get the value of the table-only selection box.
Below is an HTML file with a table-only selection box, with the following code:
Copy Code code
not very in place, mainly this code, you can set it yourself
// Calculate the left and widthleft of each coordinate item = I === 0? 2: 2 + I * (100/fileTempLen); width = 100/fileTempLen-2;
Each item in the drop-down list is also a template.
The following figure shows the initial HTML structure.
The following are all CSS styles:
2. Script Processing
Next, we will focus on processing JS scripts.
To get the information of the selected file, you natur
-----011-form.html-----1 DOCTYPE HTML>2 HTML>3 Head>4 Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">5 title>A PHP Web pagetitle>6 Head>7 Body>8 Center>9 formAction= "011-post.php">TenChoose a few words:BR/> One Selectmultiple= "multiple"name= "tower[]"> A option>The d
In JSP, the value submitted by the multiple SELECT statement in the form is obtained. In JSP, the value submitted by the multiple SELECT statement in the form is 10.0102.
Add the multiple = "multiple" attribute to the select tag
Contents of the formOnce the form is created, you can place the control in the form to accept the user's input. These controls are typically used in conjunction with Form labels and Form propertiesIn HTML, use the Properties of the
Property
Description
, personality, etc., multi-choice -Check: Appleinputtype= "checkbox"/>Watermeloninputtype= "checkbox"/> P> P> the name value of the radio must be consistent in order to be classified into a class of radio -Radio: Maleinputname= "Gender"type= "Radio"/>femaleinputname= "Gender"type= "Radio"/> P> P> Hide text box, it exists, but invisible - inputtype= "hidden"/> P> P> Drop- down list, we'll also use this to d
:
The Code is as follows:
You are
.
Obtain the data of the Form Control by taking the name value of the Form Control.
For example, "username" is the name value of the text input box of the Form Control,
You can use $ _ POST ["username"] to obtain the data in the text input box.
Obtain HTML
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.