Home > Backend Development > PHP Tutorial > PHP uses $_POST or $_SESSION[] to pass parameters to js functions_PHP tutorial

PHP uses $_POST or $_SESSION[] to pass parameters to js functions_PHP tutorial

WBOY
Release: 2016-07-13 10:18:50
Original
1016 people have browsed it

php uses $_POST or $_SESSION[] to pass parameters to js functions

In php programming, you can use $_POST or $_SESSION[' ' ], you can also use the echo statement for output

The code is as follows:

The above $_POST[''] can also be applied to $_SESSION[' '];

The code is as follows:

var para="$para"; alert(para);

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/879613.htmlTechArticlephp uses $_POST or $_SESSION[] to pass parameters to js functions. You can pass parameters to js functions in php programming. You can use $_POST or $_SESSION[' '], or you can use the echo statement to output the code as follows: ?php ech...
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