Home  >  Article  >  Web Front-end  >  H5 Learning Journey-H5 Interaction with Php (12)

H5 Learning Journey-H5 Interaction with Php (12)

黄舟
黄舟Original
2018-05-14 17:07:582119browse


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>

php code

<?phpecho "用户名:".$_GET[&#39;name&#39;]."<br/>密码:".$_GET[&#39;password&#39;];

! ! ! First, put php in the htdocs directory and then replace the directory! Figure

H5 Learning Journey-H5 Interaction with Php (12) 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)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn