There are 2 pages a page a.php and b files functions.php
A is the submission page
b is the Require file
How to upload the Pripath value from page A to the functions.php page
A page
b file functions.php
Optimize the $ztid= $cr [' Ztid ']; $ztid 22= ' mingxing/****a The value of the page to the front of the mingxing/to the star good is not '; $yhid = $class _zr[$ztid][yhid];if ($yhid {$yhadd =returnyhsql ($yhid, $yhvar, 1);} $query = "Select Ztid,cid,classid,id,isgood from {$dbtbpre}enewsztinfo where". $yhadd. " Cid= ' $classid ' ORDER by '. $addorder. $limit; $totalquery = "SELECT count (*) as total from {$dbtbpre}enewsztinfo where". $ Yhadd. " Cid= ' $classid ';//Statistics $doclasspath=returnsaveztpath ($ztid, 0); $dopath =ecms_path. $ztid 22. " /"; if (empty ($class _zr[$ztid][zturl]) {$dolink = $public _r[newsurl]. $ztid 22." /";} else{$dolink = $class _zr[$ztid][zturl]. " /";
Reply to discussion (solution)
Use session
Put, take
First you determine what value is received, and then use theIt's also possible.
Require ('.. /.. /class/functions.php ');
$pripath = (int) $_post[' Pripath '];
Change the order of the two sentences so that functions.php can use the $pripath variable.
Require ('.. /.. /class/functions.php ');
$pripath = (int) $_post[' Pripath '];
Change the order of the two sentences so that functions.php can use the $pripath variable.
This is a positive solution.
You can also use $_post[' Pripath ' on page b; Get value
It's all require. Also use the pass parameter, #4正解
#4正解: