I. HTML5 forms
1. Forms for obtaining different types of user input
2. Common form Labels
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/FB/wKiom1YLbLXinJI6AAEOCjfiS6Y302.jpg "title=" 1.png " alt= "Wkiom1ylblxinji6aaeocjfis6y302.jpg"/> Example:
<! Doctype html>As follows:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/F9/wKioL1YLbXTyILQHAAD893JAeoc023.jpg "title=" 2.png " alt= "Wkiol1ylbxtyilqhaad893jaeoc023.jpg"/>
Second, the construction of PHP environment
I use the XAMPP, the specific steps please see here:
Http://jingyan.baidu.com/article/a681b0de3fbe7f3b18434684.html
After the installation is completed, enter localhost in the browser address bar, which appears similar to the film, indicating that the environment was built successfully.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/F9/wKioL1YLbzOCI5yxAAOdNlbx7E4978.jpg "title=" 3.png " alt= "Wkiol1ylbzoci5yxaaodnlbx7e4978.jpg"/> Next install the PHP plugin in eclipse:
Open Eclipse, click on "Help"-"Install new software", click Work in the Pop-up window, select your version of Eclipse address,
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/FC/wKiom1YLcPbSvcUIAAEI7wM0Lkg793.jpg "title=" 4.png " alt= "Wkiom1ylcpbsvcuiaaei7wm0lkg793.jpg"/>
Then enter PHP in the search box, select the one you want in the search results, then "next" until the installation is complete, restart Eclipse, click on open Perspective, select PHP to switch to PHP environment.
You can also follow the following methods: http://jingyan.baidu.com/article/fd8044faf388a05031137a84.html
Third, HTML5 form and PHP interaction
Cases:
Create a new PHP project in eclipse with the following code
<?phpecho "User name:". $_post[' name ']. " <br> password: ". $_post[' password ');
In IntelliJ idea, create a HTML5 file with the following code
<! DOCTYPE html>
Run the HTML file with the following results:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/FC/wKiom1YLeh7AYb8wAABIHvBeZlw686.gif "title=" 5.gif " alt= "Wkiom1yleh7ayb8waabihvbezlw686.gif"/>
This article from "Fcheng" blog, declined reprint!
Rookie 0 Basic Learning HTML5-----1.5, HTML5 form and PHP environment setup