Home > Web Front-end > H5 Tutorial > body text

H5 Learning Journey-H5 Interaction with Php (12)

黄舟
Release: 2018-05-14 17:07:58
Original
2092 people have browsed it


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[&#39;name&#39;]."<br/>密码:".$_GET[&#39;password&#39;];
Copy after login

! ! ! 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)!


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!