Home  >  Article  >  Backend Development  >  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
WBOYOriginal
2016-07-13 10:18:50995browse

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...
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