Home > php教程 > PHP开发 > body text

How to share values ​​between PHP HTML JavaScript MySQL codes

高洛峰
Release: 2016-11-25 09:35:42
Original
1330 people have browsed it

1.PHP

a.PHP -> HTML & JavaScript

html code

 />
Copy after login


JavaScript code
Copy code The code is as follows:

Copy after login

b.PHP <-> MySQL

php In the code
The code is as follows:

Copy after login

2.HTML

a. HTML -> PHP (POST method)

In the html code
Copy the code The code is as follows:

Copy after login
Copy after login

do.php In the file code
Copy the code The code is as follows:

Copy after login
Copy after login

b. HTML -> JavaScript


JavaScript code (available and can be changed)
Copy code The code is as follows:

Copy after login

3.JavaScript

a. JavaScript -> HTML ( Common law, not verified)

The
code in the JavaScript code is as follows:

Copy after login


html code
The code is as follows:

 Transfer through html

1. The JavaScript code is given to html first
The code is as follows:

Copy after login

2.html code is sent to php
The code is as follows:

Copy after login
Copy after login

 3.do.php receives
The code is as follows:

Copy after login
Copy after login


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!