Home > Backend Development > PHP Tutorial > Method of passing value between PHP and PHP script

Method of passing value between PHP and PHP script

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-08 09:25:53
Original
1214 people have browsed it

Using SESSION is very convenient.

For example, if you want to pass the id value in A.php to B.php, the method is:

In A.php:

session_start();
$_SESSION['get_id'] = $get_id;
Copy after login

Receive in B.php:

session_start();
$get_id = $_SESSION['get_id'];//从session读取id
Copy after login
This is OK

The above introduces the value transfer method between PHP and PHP scripts, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
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
Latest Issues
Session
From 1970-01-01 08:00:00
0
0
0
session
From 1970-01-01 08:00:00
0
0
0
session login information
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template