Defined global variables with 3 php pages -
just strange thing have 3 pages in php define global variables define() uploaded in xampp server.
the main page has required pages
// defined password , username costants; require_once('config.php'); // defined other new constants , use password , username constant. require_once('http_post.php');
config.php , http_post.php has no reference (required) each others.
i asking myself how http_post can take password , username defined in config.php without reference, in 1 xampp installation works all, htt_post.php can retrieve username , password variable (localhost) config when upload server xampp (no more localhost me) http_post.php cannot see username , password in config.php. how possible? changed? particular behaviour of localhost? 2 php pages referred main page in way connected?
thx lot
use localstorage or cookies. in php can have use this:
echo "<script>localstorage.username = " . $username . "</script>";
Comments
Post a Comment