1. First introduce the establishment of the PHP development environment. Search apachefriends on Google and you will find the download link for xampp. This tool integrates many services of apache
2. Set up a php editing environment, select eclipse to install the php plug-in, first install other software, enter http in the search box, then select the software library of the corresponding version of eclipse, select php
from the program language below. The effect is as follows
![Write picture description here](http://www.php.cn/
A simple login program
html code
<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<title>H5表格提交</title></head><body>
<form action="http://localhost/Myservice/newfile.php" method="get">
用户名:<input type="text" name="name">
密码: <input type="text" name="password">
<br/>
<input type="submit" value="提交">
</form></body></html>
Copy after login
php code
<?phpecho "用户名:".$_GET['name']."<br/>密码:".$_GET['password'];
Copy after login
! ! ! First, put php in the htdocs directory and then replace the directory! Figure
The above is the content of the H5 learning journey-H5 and Php interaction (12). For more related content, please pay attention to the PHP Chinese website (www.php.cn)!